Home › Forums › Support › Remove quantity in Cart WooCommerce This topic has 3 replies, 2 voices, and was last updated 3 years, 3 months ago by Fernando. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts December 25, 2022 at 8:19 pm #2473250 Dan Hi there, I need some help, please. How can I remove quantity in Cart and Checkout (Tab) of WooCommerce? December 25, 2022 at 9:13 pm #2473282 Fernando Customer Support Hi Dan, For clarity, can you provide a screenshot of the specific “Quantity” block you which to remove? Uploading Screenshots: https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots December 25, 2022 at 9:57 pm #2473300 Dan Hi Fernando, I find what’s I looking for: —————————— add_filter( ‘woocommerce_cart_item_quantity’, ‘wc_cart_item_quantity’, 10, 3 ); function wc_cart_item_quantity( $product_quantity, $cart_item_key, $cart_item ){ if( is_cart() ){ $product_quantity = sprintf( ‘%2$s <input type=”hidden” name=”cart[%1$s][qty]” value=”%2$s” />’, $cart_item_key, $cart_item[‘quantity’] ); } return $product_quantity; } —————————— Again, thank you! December 25, 2022 at 11:26 pm #2473336 Fernando Customer Support I see. Thank you for sharing this! You’re welcome, Dan! Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In