Last active
June 16, 2021 23:08
-
-
Save DeoThemes/647d255d1575953890d74874d3fa3a35 to your computer and use it in GitHub Desktop.
Add quantity buttons to WooCommerce
Solved,
This plugin show quantity buttons on all places and work with ajax.
https://br.wordpress.org/plugins/quantity-field-on-shop-page-for-woocommerce/
Thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @DeoThemes
After implementing this solution,
https://docs.woocommerce.com/document/override-loop-template-and-show-quantities-next-to-add-to-cart-buttons/
To show the Quantity fields and your code to show the buttons.
I found that it doesn't work with Ajax.
So I found another one that works. However, it came with a small problem.
I use the ContentViews Plugin to display my products, and the quantity field is not showing up in ContentViews with the new code.
Plugin developers told me that:
Our plugin uses the "add_to_cart" shortcode of WooCommerce to show the "Add to cart" button.
Look to the code:
https://gist.github.com/webaware/6260468
Looking at the code, is it possible to know how to change it so that it is also displayed in the contentviews listing?