How to set a max quantity for out of stock
-
I can solve it like this:
You must have the woocommerce folder in your theme.
Access:
wp-content/themes/patricinhabijoux/woocommerce/globalEdit the quantity-input.php file
After the
defined (‘ABSPATH’) || exit;put this code
global $product;search for the line with the code.
max = “<? php echo esc_attr (0 <$ max_value? $ max_value: ”);?>”And change to
max=”<?php echo esc_attr( $product->get_max_purchase_quantity()); ?>”The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to set a max quantity for out of stock’ is closed to new replies.