Issues with Setup and Use

Permalink Browser Info Environment
We have setup the add-on and after purchasing a gift card, an email is not being generated and sent to the user with the gift card information (Yes, we have enabled this in the settings). Also, during the checkout process the user is not given the option to add the gift card to a purchase.

Type: Pre-Sale
Status: In Progress
derekbcaldwell
View Replies:
Mainio replied on at Permalink Reply
Mainio
Regarding the email delivery:
- Have you linked the gift card set to the gift card product(s) in the store? So you can actually see a product in the "Linked Product" option?
- Have you checked into the site logs (Dashboard > Reports > Logs)? By default all emails sent out from your system should also appear there (unless this has been disabled). Or do you possibly see some other messages in the logs related to this?

Regarding the checkout process:
Gift cards is added as a new payment method into the system. Have you enabled this payment method? Under Dashboard > eCommerce > Payment & Sales Tax > Gift Cards, do you see this method enabled?

If yes, can you take a screenshot of your checkout page at the point where you are selecting the payment method (after shipping details)?
derekbcaldwell replied on at Permalink Reply
derekbcaldwell
The site uses the Paypal Website Payments Standard for their payment method. When gift cards are disabled, it works great. When both payment methods are running at the same time it checkout process does not work. It seem both methods are fighting each other.

Also if you disable paypal, and only use gift cards then the checkout process works fine.

Any suggestions?
Mainio replied on at Permalink Reply
Mainio
As of my understanding if you only have 1 payment option enabled, the process is still the same and it should redirect you to the same view where you get if you have 2 separate payment methods working.

Maybe there is something wrong with the PayPal payment method? The gift cards payment method should follow the standards laid out by concrete5 eCommerce. It does not even apply any dynamic scripts to the page so I would see it close to impossible for this method to mess up the other method somehow. Which is why I'm assuming the problem to be in the PayPal method.

It could be also some of your site's / theme's own scripts messing up the process. I would check into the browser developer console's logs in the situation when something doesn't work to figure out whether there is e.g. some script that breaks at that point.
derekbcaldwell replied on at Permalink Reply
derekbcaldwell
The larger problem lies in the fact that the Core eCommerce system assigns one payment method per-order. This is how the database itself is configured and thus the Order model. So, it's currently impossible to have multiple payment methods applying simultaneously to a single order, which makes Gift Cards useless for any case where the order total exceeds the available gift card balance. It would perhaps make more sense for a Gift Card to hook into the order discount system rather than the payment method. That way, the gift card code could be put in as a discount code and a discount equal to the amount of the gift card could be applied to the order but the main payment method (such as PayPal) could still be used to cover the remaining order balance.
Mainio replied on at Permalink Reply
Mainio
Yes, after you apply the gift card successfully to the order, it applies a discount to the order corresponding the amount of the gift card in case the gift card is not sufficient to complete the payment.

Yes, only a single payment method gets applied to the order and it is the last one. So if you first apply the gift card and pay the rest with PayPal, the payment method of that order is PayPal. You are still able to identify whether any gift cards were applied to that order through the "CoreCommerceGiftCardsCouponTransactions" table which stores every transaction made against any order.

In case the gift card is enough to pay the complete order, then the payment method marked for that order is Gift Cards.

There are multiple problems related handling the gift cards through the discounts system. They would not be gift cards then, they would be discount cards. Gift cards should be seen as exchangeable currency.

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
eCommerce (2.8.10), eCommerce Gift Cards (1.4.7), Indiana University Safety Store (1.0.5.0), Product Multi Inventory (2.0.0), Pro Events (11.0.6), Pro News (5.1.0), Quick Content (1.0.1).

# concrete5 Overrides
controllers/cart.php, controllers/download_file.php, controllers/dashboard, elements/orders, languages/sk_SK, languages/vi_VN, languages/de_DE, languages/fr_FR, languages/fa_IR, languages/ja_JP, languages/sl_SI, languages/el_GR, languages/es_MX, languages/ar, languages/it_IT, languages/cs_CZ, languages/es_ES, languages/fi_FI, languages/sv_SE, languages/ru_RU, languages/zh_CN, languages/nb_NO, languages/ro_RO, languages/zh_TW, languages/nl_NL, languages/tr_TR, languages/es_PE, languages/he_IL, languages/pt_PT, languages/es_AR, languages/da_DK, models/attribute, single_pages/dashboard, tools/order_print.php

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
apache2handler

# PHP Version
5.5.23-1+deb.sury.org~trusty+2

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, libxml, mbstring, memcached, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, Zend OPcache, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 500M
sql.safe_mode - Off
upload_max_filesize - 500M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/601.7.8

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.