This plugin displays the quantity field on the shop page of WooCommerce stores so customers can change the quantity of the product before adding to cart.
螢幕擷圖
This is where the quantity field would appear
安裝方式
Installation via WordPress Dashboard
Go to your WordPress Dashboard and click on “Plugins”
Click on “Add New” and search for “Quantity Field on Shop Page for WooCommerce”.
Click on Install and activate the plugin.
Installation via FTP
Download the plugin files and extract to the ‘/wp-content/plugins/’ directory.
Go to your WordPress Dashboard, and activate the plugin from the Plugins page.
Plugin should work out of the box, no settings necessary.
常見問題集
Will this work with other ecommerce plugins?
No, the plugin was created to work only with WooCommerce.
Where is the settings page?
There is no settings page. The quantity field should be visible on your store the moment you activate the plugin.
I reported an easy-to-fix bug 8 months ago (and others have also reported it), but still no response from the dev, and no fix 🙁
wordpress.org/support/topic/log-error-stock_quantity-was-called-incorrectly
I have been trying to add qty to DIVI products page.
This snippet added the ADD TO CART button:
add_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 9);
but not Quantity.
Using this plugin solved that problem - for DIVI you may need the snippet and the plugin.
add_filter( 'woocommerce_quantity_input_args', array( $this, 'woa_woocommerce_quantity_input_args' ), 10, 2 );
This is automatically adding 1 default qty to single grouped product page.
So all associated grouped products have 1 default qty and our users have to set to 0 individually among 50 products in group.
can you handle this feature individually please? I am not why this filter is used but for the group products, its really conflict.