I implemented on my e-commerce the variations choose in shop page in the content-product.php
:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_quantity_input', 30 );
/*remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart_quantity', 30 );*/
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50 );
do_action( 'woocommerce_single_product_summary' );
?>
I want to remove the quantity selector from home page. How can I remove it using remove_action
?
Read more here: Remove quantity field from WooCommerce shop page