• Resolved brayan1145

    (@brayan1145)


    Hi, i need to add/show the quantity field in the product page, but is a error because the quantity field is showing in the cart page as show in the image below (woocommerce, theme: neve)


Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @brayan1145,

    Thank you for sharing the screenshots.

    The theme which you are using is not allowing to add Quantity Selector on the WooCommerce Product page. I am not sure why. Maybe you can ask the Theme Author because they are the best person who can give you the optimal answer.

    But if you want to have Quantity Selector on WooCommerce Product page then you can add below code in your currently active theme’s functions.php file.

    Code Snippet:

    add_filter( "woocommerce_is_sold_individually" , "woocommerce_is_sold_individually_callback", 20, 2 );
    function woocommerce_is_sold_individually_callback( $status, $product ){
    	if ( $product->get_sold_individually() ){
    		return true;
    	}
    	return false;
    } 

    Screenshot: https://prnt.sc/lux3ue

    Please let me know if that works for you or not.

    Regards,
    Kartik Parmar

    Thread Starter brayan1145

    (@brayan1145)

    Thank you so much
    i had searched this for too much days and i finally find it xD

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add quantity field in product page’ is closed to new replies.