This Shopify application is an extension-only application, meaning it does not have its own page in the Shopify admin.
This Shopify application contains the following features:
- General rule for non logged in users: they can't add more than 2 items of the same product variant to their cart.
- Special rule for logged in users: they can't add more than 5 items of the same product variant to their cart.
- Localization of the error message (English and French)
- No coding required to update the rule: the maximum amount of items can be updated by the merchant, using a metafield on the Shop model.
To run this application locally:
- Clone the repository.
- Follow Shopify's Work on an existing app tutorial to install the project dependencies and preview the app.
- Activate the app's checkout rule on your store. Go to your Shopify admin > Settings > Checkout > Checkout rules > Add rules > [NAME_OF_YOUR_APP] > Save > Turn on.