Options for restricting number of products purchased
The following are options for restricting the number of products that can be purchased in one order:
- Set the max quantity purchased for a primary category or a product group
- Or set the max quantity for a specific product (this will overwrite any settings set at a category level)
Setting for a PRIMARY Category OR for a Product Group
If you would like to restrict the number of products that can be purchased in one order for a certain group of products, you can set this for a category by taking the following steps:
(NOTE: This does not work for a secondary category)
- Log in as web admin
- Under a Category, click Update
- Under the Category Details tab, enter MaxQty=XXX under Configuration and click Save - where XXX is the total number of products allowed to be purchased within an order - and the change will take effect the next time the cache is cleared:
The following are additional configuration options available for Primary Categories (note these configurations are for Primary Categories only and not Product Groups, Primary Categories require these additional configurations due to the sub-categories):
- You can allow the category to inherit it's configuration from it's parent categories
-
- All configurations are inherited by it's sub-categories by default that have a blank configuration - but If you don't want to allow a configuration to be inheritable, enter the following config setting:
- MaxQty_NoInheritance=Y
- This setting can be used either in a parent category to prevent it from being used by a sub-category OR for a specific category that you don't want it or it's sub-categories to inherit from a parent category further up the hierarchy.
- All configurations are inherited by it's sub-categories by default that have a blank configuration - but If you don't want to allow a configuration to be inheritable, enter the following config setting:
-
- OR you can configure a category to copy it's configuration from another category by entering the following value into the box:
-
- MaxQty_CopyConfiguration=The code number of the category to copy from
-
Option to EXCLUDE specific products
You can set specific products to be excluded from the primary category level settings using the parameter MaxQty_ExcludeCodes
For example:
MaxQty=2
MaxQty_ExcludeCodes=A1234,B2345,C3456
Option for half bottles
You can set specific products to be deemed "half bottles" using the parameter MaxQty_DoubleCodes.
For these specific products, the products are allowed twice as much quantity as the other products.
In this example,, a user can add 4 of product A1234 instead of 2.
For example:
MaxQty=2
MaxQty_DoubleCodes=A1234,B2345,C3456
Careful consideration of the Product Group / Primary Category
Note that the title of the product group / primary category is used in the validation message displayed to the user as follows (in this case, the product group is called "Paracetamol For Adults"):
(in this example screen shot, it includes the extra text displayed if there are "MaxQty_DoubleCodes" used - i.e. half measures)
Setting for a Specific Product
If you would like to restrict the number of products that can be purchased within one order for a certain product, you can set this for a specific product by taking the following steps:
- Log in as web admin
- Under a product/version, click Update
- Under the Product Detail tab, click Show Advanced Settings and enter the max quantity under Maximum Order Quantity and click Save - and the change will take effect the next time the cache is cleared:
Resetting Product Settings to blank
If you currently have lots of products using a MAX QTY and want to change these to use category level settings instead, you can ask the Help Desk to "reset all product level max quantities to zero" and they can run this as a once-off migration task for you.
Comments
0 comments
Please sign in to leave a comment.