Discount code issue

  • Posts: 116
  • Thank you received: 7
  • Hikashop Business
8 years 6 months ago #216668

-- 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.

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
8 years 6 months ago #216761

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
8 years 6 months ago #216765

Hi,

In the file "administrator/components/com_hikashop/classes/cart.php" please replace

	if(!isset($cart->user_id) && empty($cart->cart_coupon))
		$cart->cart_coupon = '';
By
	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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: cpaschen, stratacorps

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

  • Posts: 116
  • Thank you received: 7
  • Hikashop Business
8 years 6 months ago #216889

That did it, thank you.

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

  • Posts: 194
  • Thank you received: 5
8 years 5 months ago #219467

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.

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
8 years 5 months ago #219543

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum