Disable buy now button until minimum quantity is met
-
Hi! Thank you for all the great plugins you’ve made, I think they are awesome.
I installed this plugin on a clients page that has a ‘buy now’ button next to the ‘add to cart’ button and I can’t figure out a way to disable the ‘buy now’ button until minimum quantities are met (just as the ‘add to cart’ button does). Instead, the ‘buy now’ button stays enabled giving the option to add the bundle product to the cart even when items are not yet selected and this is a problem of course because it makes the plugin useless and I can’t get rid of the ‘buy now’ button being an important feature to my client.
A partial solution that I found is to add the ‘single_add_to_cart’ class to the ‘buy now’ button. That solves the disabling problem but it also makes the button redirect to the homepage instead of redirecting to the checkout (as it should), so this solution is unviable.
Is there another class that I could use to add it to the ‘buy now’ button to accomplish this without losing its normal behavior after clicking?
Thank you in advance, I hope you can help me with this.
Please let me know if something wasn’t clear.
Regards!
- The topic ‘Disable buy now button until minimum quantity is met’ is closed to new replies.