This plugin allows you to:
- Limit the amount of a specific product variant per order. I.E. A customer is only allowed to buy 1 of product "Limited art t-shirt X" per order.
- Only allow a product to be purchased in multiples of X. E.g. only per 4.
- Add the following config to your
vendure-config.ts
:
plugins: [LimitVariantPerOrderPlugin];
- Start Vendure, login and go to the product you want to limit.
- Set the custom field
Maximum amount per order
andMultiple of per order
on a variant and update the product - Customers can now only buy X amount of the variant per order. The same customer can still order the product again in a new order.