tastyigniter / ti-ext-cart

A TastyIgniter extension that allows you to easily add a shopping cart to your site.
MIT License
8 stars 32 forks source link

[Bug]: Checkout button can be pressed multiple times after cart refresh #90

Open MinijusS opened 9 months ago

MinijusS commented 9 months ago

What happened?

When updating the cart in any way (by removing the item, adding another item, or changing the payment method) the .checkout-btn "disabled" prop doesn't work anymore. So the user can click many times on the button and it will create separate orders until he is redirected to the success page. Happened a few times already, and I cannot find the solution. It works properly on page load, but after refreshCart it stops working...

What did you expect to happen?

On cart refresh, the checkout button should always work, it should become disabled on Checkout button click. So that the user wouldn't send multiple orders.

Version

3.x

What browser are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Relevant log output

No response