Skip to content

codlp/extension-cart-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published