Hide quantity on cart page

By default, WooCommerce shows a quantity field or selector on your product pages. While this is an awesome feature to have, it might not always be needed.

function remove_quantity_column( $return, $product ) {
 if ( is_cart() ) return true;
}
add_filter( 'woocommerce_is_sold_individually', 'remove_quantity_column', 10, 2 );
See also  Change Input Field to Textarea on Checkout

Leave a Reply

Your email address will not be published. Required fields are marked *