Update Cart, then Empty Cart, Results in Browser Warning of Resending Form Data

  • Posts: 31
  • Thank you received: 1
7 years 5 months ago #270517

-- HikaShop version -- : 3.1.0
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.1.1
-- Browser(s) name and version -- : Firefox 53.0.3 (64-bit)

Hi, using non-legacy checkout. Steps to reproduce:

  1. Add item to cart.
  2. Change quantity of item and click press Enter to refresh.
  3. Now click on X to delete item from cart, to empty the cart.
  4. Browser attempts to redirect but shows warning, "To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier."

Attachments:
Last edit: 7 years 5 months ago by nyanginator. Reason: Clarification of refresh quantity method

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 5 months ago #270531

Hi,

Unfortunately, I'm not able to reproduce the problem.
Please provide a link to the page so that we can look at the situation.

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

  • Posts: 31
  • Thank you received: 1
7 years 5 months ago #270601

Hello, sorry I meant to say to press Enter to update/refresh the quantity. The problem doesn't seem to happen if you click on the refresh icon. I also found it happens on Firefox and not on Chrome (only 2 browsers I have installed atm).

Sorry I don't have a test site online for you to try. I've only been testing on localhost so far.

I think this thread is relevant: support.mozilla.org/en-US/questions/938403

Last edit: 7 years 5 months ago by nyanginator. Reason: Added link to Mozilla thread

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 5 months ago #270621

Hi,

Thanks for the precision.

That's normal that you have that when you press enter. Pressing enter submits the form on the page, always in POST. That's the backup mode, when javascript is not used. When you click on the button, it's the javascript system that does the job in ajax and there is no such issue with ajax requests.

We'll look at doing something to catch the enter key to redirect the event to the javascript system.

The following user(s) said Thank You: nyanginator

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

Time to create page: 0.055 seconds
Powered by Kunena Forum