Hey Guys,
I’m currently in the process of replacing an outdated third-party Ajax button plugin with the native add-to-cart buttons in Pro. However, there’s one problem I’m having with the Pro buttons.
When the “Sold Individually” option is selected within the Woocommerce product settings, the page will reload, but only if that said product is already in the cart.
So if the product is not in the cart yet, the button will do its work just fine, and add it without any page reloads. The button also will never reload the page if the “Sold Individually” option is not selected. However, once it is enabled, the site will reload every time I press it when the product is already in the cart.
How can I stop this behavior?
Ideally, the page should never reload, no matter how many times the button is pressed, even if the quantity can’t increase by more than 1.
Thanks in advance!
Best,
Oguzhan