Created
October 17, 2023 08:25
-
-
Save codersaiful/751f8d8c8a2ea2d40c088929aa3b3554 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wcmmq_set_min_value_as_input_value($args){ | |
if(is_cart()) return $args; | |
$args['input_value'] = $args['min_value'] ?? 1; | |
return $args; | |
} | |
add_filter('woocommerce_quantity_input_args','wcmmq_set_min_value_as_input_value',999999); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment