This issue has been migrated from the Forge. Read the original ticket here.
If you double click on "add to cart" on a product page in FO, the confimation modal is displayed but cannot be closed if you click on the cross or on "continue shipping", but you can proceed to checkout.
I should be able to close the modal
Steps to reproduce the behavior:
Screenshots
https://drive.google.com/file/d/1ZMlOxzJDPdXoRdnQEgEGSUm-I_irCj_t/view?usp=sharing
This comment has been migrated from the Forge. Read the original comment here.
Hi Simon,
I manage to reproduce the issue with the last version 1.7.3.3.
I attached a video record.
The best is yet to come' Framed poster.webm
We will see how to fix it.
Best regards, Khouloud
Maybe the user should not be allowed to click twice on the atc button that fast, as it could also create other unwanted issuses like adding more products than wanted. So a simple solution would be:
$(this).attr("disabled",true);.prestashop.on("updatedCart", function(event) {.....removeAttr("disabled");I did something similar in my custom theme looks like this (mind the multiple clicks): https://www.youtube.com/watch?v=MEMOgdikNBI&feature=youtu.be
Isn't it critical?
Well, this is actually kinda critical since the user's experience is affected negatively.
I've tried to disable the button onClick but won't send the correct parameters when submitting.
@rdy4ever can you please share the code you used to deactivate the button when processing the request?
Best regards
Most helpful comment
Maybe the user should not be allowed to click twice on the atc button that fast, as it could also create other unwanted issuses like adding more products than wanted. So a simple solution would be:
$(this).attr("disabled",true);.prestashop.on("updatedCart", function(event) {.....removeAttr("disabled");I will make a PR for this when I get the time if no one gets to it faster.
I did something similar in my custom theme looks like this (mind the multiple clicks): https://www.youtube.com/watch?v=MEMOgdikNBI&feature=youtu.be