Multiple Form Submission on Double-Clicking

  • Posts: 109
  • Thank you received: 5
10 years 1 week ago #213593

-- HikaShop version -- : 2.4.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.2

Hello, there.

Good evening!

The following issue is reproducible on your demo site by the following steps:

1) go to a product page of a product
2) click on the "Add to Cart" button in quick succession
3) the product is added multiple times because the form is submitted multiple times

Please could you advise how best to prevent the form from being submitted multiple times?

Thanks.

Take care!

Attachments:

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 1 week ago #213601

Hi,

We are currently working on a re-factoring of the "add to cart" system ; but it won't be available for the next release, it will be available later.

To prevent such think, the best is to put the button as "disabled" once you clicked on it.
The idea is to replace the javascript in the "add to cart" button to add a "this.disabled = true" when we authorize the "add to cart".

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.055 seconds
Powered by Kunena Forum