Featured products shortcode – add quantity field for each product
-
I’m using the following shortcode to show featured products on my custom page:
[products limit=”6″ columns=”3″ orderby=”rand” visibility=”featured” ]
It works correctly with WooCommerce 3.7.0. The problem I’m having is that I would like to add a quantity input field to each product, before Add to cart button. I already have a function to do this for Shop and Category pages:add_action( 'woocommerce_after_shop_loop_item', 'taisho_quantity_field', 9 );
Unfortunately for featured products listed via this shortcode it has no effect. Is there any way I can make it work?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.