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).
I discovered using different plugins that if the button uses the ‘single_add_to_cart’ class then it behave as the 'add to cart' button getting disabled until minimum qunatities are met but it also makes the 'buy now' button lose its function of redirecting to the checkout (as it should), so this solution is not good.
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?
https://wordpress.org/plugins/buy-now-button-for-woocommerce/ -->this one works because it uses the class ‘single_add_to_cart’ which is also the reason why its intended function doesn’t work (does not redirects to checkout page and if it does it doesn’t add the chosen product to the cart). If I remove this class with javascript it works properly but it stops getting disabled until minimum quantities are met.
I've read your description and got your issue. For your case, I would like to recommend using another plugin from our team - which was just released a few days ago: WPC Buy Now Button for WooCommerce. It can be compatible with WPC Product Bundles and will check the min/max before allowing buyers to press Buy Now. You can kindly give it a try, it's free on the WordPress repository.
If you encounter any issue with this plugin, we're ready to hear your feedback so that we can improve this newly launched plugin for the better.
I installed the plugin and from what I was able to test so far is working fine but not doing exactly what the buy now button is intended to because it is supposed to let you buy a product aside from what you have in the cart leaving the cart as it is (not emptying it nor adding the product to the cart and redirecting to the checkout) so you can keep the cart for a future purchase and just buy that product now.
I'm not sure but I think it automatically creates different checkout urls for each product so that when you hit the buy now button you get redirected to that products specific checkout link instead of the regular checkout.
You can disable the Reset cart option in the plugin setting under WPClever >> Buy Now Button: https://www.screencast.com/t/a7IvAVj4rjaz. The current cart will be preserved when buyers press the Buy Now button.
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).
I discovered using different plugins that if the button uses the ‘single_add_to_cart’ class then it behave as the 'add to cart' button getting disabled until minimum qunatities are met but it also makes the 'buy now' button lose its function of redirecting to the checkout (as it should), so this solution is not good.
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?
I used the following buy now button plugins:
https://wordpress.org/plugins/woo-direct-checkout-button/
https://wordpress.org/plugins/buy-now-button-for-woocommerce/ -->this one works because it uses the class ‘single_add_to_cart’ which is also the reason why its intended function doesn’t work (does not redirects to checkout page and if it does it doesn’t add the chosen product to the cart). If I remove this class with javascript it works properly but it stops getting disabled until minimum quantities are met.
Thank you!
Hi Samuel,
Thanks for contacting us here.
I've read your description and got your issue. For your case, I would like to recommend using another plugin from our team - which was just released a few days ago: WPC Buy Now Button for WooCommerce. It can be compatible with WPC Product Bundles and will check the min/max before allowing buyers to press Buy Now. You can kindly give it a try, it's free on the WordPress repository.
If you encounter any issue with this plugin, we're ready to hear your feedback so that we can improve this newly launched plugin for the better.
Best regards.
Janilyn T. - WPClever Support Agent
Hi Janilyn!
Thank you for your reply.
I installed the plugin and from what I was able to test so far is working fine but not doing exactly what the buy now button is intended to because it is supposed to let you buy a product aside from what you have in the cart leaving the cart as it is (not emptying it nor adding the product to the cart and redirecting to the checkout) so you can keep the cart for a future purchase and just buy that product now.
That’s what this plugin claims to do for example:
https://wordpress.org/plugins/buy-now-button-for-woocommerce/
I'm not sure but I think it automatically creates different checkout urls for each product so that when you hit the buy now button you get redirected to that products specific checkout link instead of the regular checkout.
Please let me know your thoughts.
Hi Samuel,
Thanks for the clarification.
You can disable the Reset cart option in the plugin setting under WPClever >> Buy Now Button: https://www.screencast.com/t/a7IvAVj4rjaz. The current cart will be preserved when buyers press the Buy Now button.
Best regards.
Janilyn T. - WPClever Support Agent