Skip to main content

Discount code issue

More
10 years 11 months ago #216668 by stratacorps
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.6.13
-- Browser(s) name and version -- : any

I have another post but haven't any resolution to this. I can reproduce the issue on your own demo site.

The problem:

1. A user visits the store, selects a product and proceed to checkout.
2. On the discount code field they enter a valid coupon/discount code. The discount is applied to the shopping cart.
3. If the shopper leaves the checkout page, adds an item to the order or changes a quantity, anything that causes the page to refresh (either by leaving it and coming back again, etc.), the discount is gone and the input box for the discount code is back again.
4. However, now you cannot enter the discount code again. Any attempt to reuse the discount/coupon code does nothing.

You have to clear all cookies from the browser session before the shopping cart is functional again. This is difficult to explain to customers and wasn't an issue in the past. We only noticed it after the update to 2.6.0 but I can not say that the issue wasn't already there in earlier versions.
The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #216761 by Jerome
Replied by Jerome on topic Discount code issue
Hi,

5. That issue only happen when the user is not connected.

The debugging continues.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #216765 by Jerome
Replied by Jerome on topic Discount code issue
Hi,

In the file "administrator/components/com_hikashop/classes/cart.php" please replace
Code:
if(!isset($cart->user_id) && empty($cart->cart_coupon)) $cart->cart_coupon = '';
By
Code:
if(!isset($cart->cart_id) && empty($cart->cart_coupon)) $cart->cart_coupon = '';
It will fix your issue.

The HikaShop 2.6.0 package would receive an update as soon as possible.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: cpaschen, stratacorps

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #216889 by stratacorps
Replied by stratacorps on topic Discount code issue
That did it, thank you.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #219467 by cpaschen
Replied by cpaschen on topic Discount code issue
This is a significant bug. I sure hope that a patch is released soon (I KNOW that I'm going to forget to make that change when I set-up HS next time .... even though I have favorited this topic :-)

Thanks for the short-term fix!

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #219543 by Jerome
Replied by Jerome on topic Discount code issue
Hi,

HikaShop 2.6.0 package has been updated few hours after the patch submission.
You can see the HikaShop build in the HikaShop configuration (Main > Advanced settings) ; just after the HikaShop version number, you can see the build number.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Time to create page: 0.171 seconds
Powered by Kunena Forum