Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.31 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.31 KB

Shopify extension-only application - Cart validation

This Shopify application is an extension-only application, meaning it does not have its own page in the Shopify admin.

Features

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.

Running this application

To run this application locally:

  1. Clone the repository.
  2. Follow Shopify's Work on an existing app tutorial to install the project dependencies and preview the app.
  3. 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.

Developer resources