Add to cart button appears to stop working (though it is working)

  • Posts: 103
  • Thank you received: 7
6 years 11 months ago #292134

-- url of the page with the problem -- : www.StutteringTherapyResources.com
-- HikaShop version -- : 3.4.0
-- Browser(s) name and version -- : all

I have just updated from the legacy front end to the new cart/checkout. It works great - EXCEPT for one thing.

When I click the "add to cart" button, I get the pop-up that appears on the screen the way it's supposed to.

I can then go into the checkout procedure, and all is well.

BUT, if I decided that I want to go back into the store to add an additional product to my order, then "add to cart" button appears to stop working. The pop-up does not appear when I click on it. (It seems that nothing is happening.)

Interestingly, the button is actually working - products get added to the cart; the user just doesn't get the notification of this. (If I click it multiple times, nothing appears to happen on the screen, but products keep getting added.)

This problem persists on the browser (tried with FF and Safari) until I clear the recent history/cache in the browser. (Clearing the website cache and turning off caching entirely does not appear to help.)

Any suggestions for me? Thanks, Scott

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
6 years 11 months ago #292149

Hi,

I'm not able to reproduce the problem on your website.
I'm any to add several products, one after another to the cart and it works fine each time:
monosnap.com/file/v3pC8NEjKgNEVmPnfKAfoBrUE7gyoL
Do you still have the problem ?

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

  • Posts: 103
  • Thank you received: 7
6 years 11 months ago #292181

Thanks Nicolas. The key is that you have to go through the checkout process and then go back to the store.

I just recreated it exactly by doing the following steps:

1) selected a product and added it to the cart (worked just fine)
2) started the checkout process
3) entered the email address and postal address
4) when the system went to the page to select the shipping method, I then went back to the store from the menu (customer decided to purchase another product)

It is at that point when I go to a product that clicking the add to cart button stops functioning. (Well, it stops showing that it's functioning - it actually is adding products to the cart in the background, but the customer doesn't get any indication or popup any more.)

Thank you for looking into this!
Scott

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
6 years 11 months ago #292237

Hi,

I tried to reproduce today the steps you wrote about but again, it worked fine for me.
Even after reaching the shipping method selection area, I'm able to add the products to the cart and I get the popup with the cart module being refreshed.
I would have told you to clear your browser's cache and/or try with another browser if you hadn't already told me that you had tried that.
So I'm surprised you have the problem since I can't see it with the same steps.

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

  • Posts: 103
  • Thank you received: 7
6 years 11 months ago #292243

Oh man, this is disappointing.

I just tried it with 3 browsers (safari, firefox, and chrome) - on 2 different computers! And, the problem occurs exactly as I have described it. The popup stops occurring if I return to the store page to add additional products.

If I don't go to the checkout procedure, I can add as many products as I want, and it works just fine.

As soon as I go to the checkout procedure and select a shipping method, then if I go back to the store I don't get the pop-up even though products are still being added to the cart. The user just doesn't get any indication that it is working.

Even though it is working fine for you, do you have any recommendations for me? I can't switch back to the legacy store because of the problem with coupon restrictions that I posted before (I stopped worrying about that issue because it that works in the new store). So, I'm kind of stuck here.

After you started the checkout process and entered and address, did you use the "store" menu tab to return to the store or get back to entering additional products a different way? There must be something different about what we're doing that causes the difference in behavior. (Also, I'm on a Mac...maybe there's an issue there?)

UPDATE WITH ADDITIONAL INFORMATION: I also just tried it with a PC running Windows and IE. Exact same result. I did it on another Mac, as well. So, now I have recreated it on 4 machines using 4 browsers, and it's the same on every one.

When you are testing this, please be sure that after you get to the checkout process, you then select the store menu item from the upper right to return to the store. That's the process I've been using.

Thank you for any help you can offer.

Scott

Last edit: 6 years 11 months ago by jsyaruss.

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
6 years 11 months ago #292245

Hi,

Well, I also tried from another computer and other browsers and each time it worked.
So yes, I suppose that we must be doing something different along the way.
What I did is this:
- access www.stutteringtherapyresources.com/
- click on the store menu item
- select the first category www.stutteringtherapyresources.com/store...chool-age-stuttering
- click on the add to cart button of the product "School-Age Stuttering Therapy: A Practical Guide "
- click on the "start checkout" button of the popup
- fill in the form and click on next: monosnap.com/file/GsKZody5QfdaHdC3TX8kVzMZAbzdED
- click on next on the address selection step : monosnap.com/file/FxyW7dpI3ra09m45nDxHaDqRwantSV
- I was then at the shipping method selection: monosnap.com/file/0ikcd2L2gJ3VnPEqKNZUg3RF1vDBmj
- change the shipping method
- click on the "store" menu
- click on the same category
- click on the add to cart button of the second product

However, while I was making the screenshots with the different steps, I was, for some reason able to reproduce the problem.
So I looked in more details and here is what I've found:
monosnap.com/file/4GACWgOniRm0FLtcJvNIN9u5NflS65
It seems that you've activated the debug of the USPS shipping plugin and the debug data actually breaks the add to cart response as it shouldn't be there.
So just turn off the debug setting of the USPS shipping method and it should work fine.
I guess that the fact I didn't get the issue while you had might be because you were switching one and off that setting.
I've notified the developer in charge of the shipping methods on our end so that he can add a patch to the shipping methods to not display the debug data during ajax requests like the add to cart process for the next version of HikaShop

The following user(s) said Thank You: jsyaruss

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

  • Posts: 103
  • Thank you received: 7
6 years 11 months ago #292300

Aaah excellent. Thank you. I didn't even know I had the debug turned on. I have turned it off, cleared the caches, and now it works exactly as it should.

All is well now. Thank you for helping me through this and for your persistence.

Scott

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

Time to create page: 0.041 seconds
Powered by Kunena Forum