We previously looked at how you can enforce minimum and maximum product quantities on the Sitefinity product details page. However, users can still override the quantities in the shopping cart, defeating the restrictions.
Fortunately, the shopping cart template also includes a validation control for each item. By mapping this control to an external User Control template as well, we can tap into this validator with custom code just as we did before.
When using Sitefinity’s Ecommerce features, you may want to restrict the quantity of items to a specific minimum or range. This allows you to do something like offer “Bundle” pricing for purchasing multiple items, while restricting the actual purchase of those items to the minimum quantity.
The Sitefinity Ecommerce Config class has a helpful property containing a list of countries that you can easily use to bind to a custom control, such as a drop down menu.