[Skip to main content](#vessel-content)

#   Multiple Form Submission on Double-Clicking

##

- **[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")**
- [![Ed&#95;Hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile") Topic Author
- [ Offline](/forum/user/33922-ed-hika)

Less More

- Posts: 109
- Thank you received: 5
-
-

11 years 2 months ago [\#213593](#213593) by [Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")  *[Multiple Form Submission on Double-Clicking](/forum/26-product-category-display/879156-multiple-form-submission-on-double-clicking#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 &quot;Add to Cart&quot; 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!")* was created by *[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")*

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

- [ ![MultipleFormSubmitonDoubleClick1.png](/forum/attachment/26350) ](/forum/attachment/26350 "...ubleClick1.png") [ ](/forum/attachment/26350?download=1 "...ubleClick1.png")
- [ ![MultipleFormSubmitonDoubleClick2.png](/forum/attachment/26351) ](/forum/attachment/26351 "...ubleClick2.png") [ ](/forum/attachment/26351?download=1 "...ubleClick2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzkxNTYtbXVsdGlwbGUtZm9ybS1zdWJtaXNzaW9uLW9uLWRvdWJsZS1jbGlja2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#213601](#213601) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Multiple Form Submission on Double-Clicking](/forum/26-product-category-display/879156-multiple-form-submission-on-double-clicking#213601 "-- 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 &quot;Add to Cart&quot; 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!")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzkxNTYtbXVsdGlwbGUtZm9ybS1zdWJtaXNzaW9uLW9uLWRvdWJsZS1jbGlja2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.039 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
