A plugin to limit how many of a product can be bought per order or require purchases in set multiples, like packs of 4.
npm install @pinelab/vendure-plugin-limited-products
This plugin allows you to:
vendure-config.ts
:Maximum amount per order
and Multiple of per order
on a variant and update the productYou can fetch product.limitPurchasePerMultipleOf
and product.maxQuantityPerOrder
via the Shop API to display messages on your storefront accordingly.
V3 removes the fields from the variant and places them on a Product, in a different format. This plugin isn't used much, so there is no migration script available. We do it manually: