Min/max order quantity restrictions
ShopWired's Min/max order quantity app allows you to configure a minimum or maximum order level for your products, restricting the quantity that a visitor can add to their basket.
- Quantity restrictions can be configured globally (across all products on your ShopWired account) or at the product level
- You can configure which types of visitors quantity restrictions apply to
To install the app:
- Navigate to Apps
- Locate the Min/max order quantity app
- Select
install this app
Once you've installed the app, you'll be able to configure quantity restrictions.
Configuring quantity restrictions on products
Configuring quantity restrictions on products
To set quantity restrictions on products, navigate to the product:
- Navigate to the Stock & delivery section
- Select the Min & max quantities tab
- Use the settings Minimum order quantity and Maximum order quantity to set a minimum and/or maximum order quantity for the product
- Both fields are optional
Configuring quantity restrictions using the product import/export system
Configuring quantity restrictions using the product import/export system
You can set quantity restrictions on products using the product import/export system using the columns Minimum Order Quantity
and Maximum Order Quantity
. Only enter numbers in these fields.
Leave the field blank to not set a quantity restriction.
Item ID | ... | Minimum Order Quantity | Maximum Order Quantity |
---|---|---|---|
123456 | ... | 2 | |
123457 | ... | ||
123458 | ... | 2 | 22 |
Configuring global quantity restrictions
Configuring global quantity restrictions
You can configure global quantity restrictions on the product settings page:
- Navigate to Products > Settings
- Locate the Min/max order quantities section
- Configure quantity restrictions in the Global minimum order quantity and/or Global maximum order quantity settings
Configuring which visitor types quantity restrictions apply to
Configuring which visitor types quantity restrictions apply to
You can configure which types of visitors quantity restrictions apply to on the product settings page:
- Navigate to Products > Settings
- Locate the Min/max order quantities section
- Select the types of visitors that should be affected by quantity restrictions using the Who should be restricted by minimum and maximum order quantities setting
Theme installation
Theme installation
You only need to install the code if you are using a Version 1 or Version 2 ShopWired theme. If you're using a later theme version, you don't need to install the code, and the app will work automatically.
Platform enforcement
The ShopWired platform enforces quantity restrictions for the current visitor without the use of the Twig variables described below. However, it is recommended to use these variables to add messaging for visitors to your product and basket pages, enforce quantity restrictions at the theme level, and display error messages where necessary.
Twig variables
The variables described below return the quantity restrictions for a product.
product.minimum_order_quantity
Returns the minimum order quantity set for a product.
global.minimum_product_quantity
Returns the minimum order quantity set on the ShopWired account.
product.maximum_order_quantity
Returns the maximum order quantity set for a product.
global.maximum_product_quantity
Returns the maximum order quantity set on the ShopWired account.
global.features.order_quantity_restrictions_for_visitors
Returns true
if the min/max order quantity app is installed and the current visitor is subject to order quantity restrictions.
global.customer.order_quantity_restrictions_enabled
Returns true
if the min/max order quantity app is installed and the current customer is subject to order quantity restrictions.
global.features.extensions.min_max_quantity
Returns true
if the min/max order quantity app is installed in the ShopWired account.