$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Woocommerce plugin for minimum order and add-to-card-step|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Woocommerce plugin for minimum order and add-to-card-step

matteradmin8PV0评论

I am looking for a way (plugin or code) to set for specific woocommerce products the minimum quantity to add to cart and the quantity increasing step. For example for product A the minimum quantity is 50 pcs. So when the user increases the quantity it should get these steps: 0-50-100-150.... If 0 is selected then it should display a message regarding the minimum quantity. Each product can have a different minimum quantity.

I am looking for a way (plugin or code) to set for specific woocommerce products the minimum quantity to add to cart and the quantity increasing step. For example for product A the minimum quantity is 50 pcs. So when the user increases the quantity it should get these steps: 0-50-100-150.... If 0 is selected then it should display a message regarding the minimum quantity. Each product can have a different minimum quantity.

Share Improve this question asked Dec 20, 2018 at 12:38 aggtraggtr 331 silver badge5 bronze badges 1
  • hi aggtr please check this plugin:wordpress/plugins/minmax-quantity-for-woocommerce – vikrant zilpe Commented Dec 20, 2018 at 12:41
Add a comment  | 

1 Answer 1

Reset to default 1

I think YITH Woocommerce Minimum Maximum Quantity plugin is the best solution for your purpose. It enables you to set a minimum or maximum quantity for product selection. It also shows quantity/amount error messages to your customers. Moreover, you can use the plugin to set a different minimum quantity for each of the product. So, I think it's the best option for you.

Post a comment

comment list (0)

  1. No comments so far