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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: