Discount codes removed on final step of checkout

  • Posts: 116
  • Thank you received: 7
  • Hikashop Business
9 years 1 month ago #215350

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : No errors display

We are using advanced checkout workflow with Checkout progress with ending (so 4 steps total) as follows:

Step 1: Billing/Address/Shipping/Coupon/Cart
Step 2: Payment/Review Order
Step 3: Review Order/Payment/Terms and Conditions

After the latest 2.6.0 update, the behavior has changed:

A coupon code is entered in Step 1, when added, it is correctly calculated and applied to the shopping cart's contents. This is reflected in the order total, etc.

/index.php?option=com_hikashop&ctrl=checkout&task=step&step=1



When you click continue to go to the next step, the order total now reflects the original total, without the coupon applied and the URL remains the same instead of advancing to Step 2...

/index.php?option=com_hikashop&ctrl=checkout&task=step&step=1





You will notice that the coupon code is blank again and you can re-apply the coupon over and over, but on the next step it always comes back with the coupon removed...

I've tried to move the coupon field to other areas of the workflow, but the behavior is the same.

Attachments:
Last edit: 9 years 1 month ago by stratacorps.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 1 month ago #215369

Hi,

I'm sorry but your two screenshots are the same.

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: 116
  • Thank you received: 7
  • Hikashop Business
9 years 1 month ago #215382

Well, the image was wrong, but the issue remains the same. I've updated my original post.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 1 month ago #215401

Hi,

I was able to reproduce your issue just once in the demo website. But I couldn't reproduce it afterwards.
I think that the issue is related to the save of the cart and the session.
The coupon is removed from the cart in the database but the coupon is still in the session, so if you try to re-enter the coupon it is refused (because the checkout think that the coupon is already there).
The best way to fix it is to log-out and then log-in ; it will clear the session and you can re-enter the coupon without problem.

Now, the point that I can't figure out yet ; is why that coupon is removed in the database.
And regarding the modifications in the files between HikaShop 2.5 and HikaShop 2.6 ; I don't see any patch which could explain that issue.

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: 116
  • Thank you received: 7
  • Hikashop Business
9 years 1 month ago #215431

On our site I can enter the coupon without logging in as a user, or not filling in the email for guest, etc. and the coupon is applied. As soon as I leave the cart and come back, the discount is no longer applied and when I attempt to enter it again, it ignores it completely. Since I can't log out, I have to shut down the browser to be able to come back to the screen--which remembers my shopping cart content, but now I can re-enter the coupon code again...this kinda confirms your first notion, but I can't figure out what is causing it.

I have tried using different versions of PHP on the site, with the same errant behavior.

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

  • Posts: 116
  • Thank you received: 7
  • Hikashop Business
9 years 1 month ago #215432

I can get your demo to repeat a similar behavior consistently until I shut down/quit the browser and start over again).

I am using a coupon that is in your demo... diVTXOgAy6iG...I added an item, your demo goes straight to the shopping cart, where I enter the coupon. It applies the discount. Then if I leave that page and go browse other products (what I did was Proceed To Checkout button on the shopping mini cart module). It brings you to the register or login page of the demo's workflow.

Then if I go back to the shopping cart, the discount code is gone again. I recorded a screen video of it, but can't upload it here.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 1 month ago #216811

Hi,

For anyone interested, the discussion continues here:
www.hikashop.com/forum/install-update/87...de-issue.html#216765

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

Time to create page: 0.065 seconds
Powered by Kunena Forum