@pinelab/vendure-plugin-limit-variant-per-order
v2.0.0
Published
Vendure plugin to limit the amount of a specific product that can be ordered per order.
Downloads
102
Readme
Vendure Plugin for limiting the amount of specific product variants per order
Official documentation here
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.
Getting started
- 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.