• Hi, I’m using the below code to limit the maximum quantity per transaction to 4 units. It works fine on the homepage but not on the Checkout page (this plugin’s functionality). Any help would be much appreciated!

    ===================

    function woocommerce_quantity_input_max_callback( $max, $product ) {
    $max = 4;
    return $max;
    }
    add_filter( ‘woocommerce_quantity_input_max’, ‘woocommerce_quantity_input_max_callback’, 10, 2 );
    ?>

    The page I need help with: [log in to see the link]

  • The topic ‘Set max quantity?’ is closed to new replies.