Skip to product information
1 of 1
Published:2024.05.20

An example of how to limit the number of items tagged with "Purchase Limit" in the Shopify theme "Dawn" to only one per order.

An example of how to limit the number of items tagged with "Purchase Limit" in the Shopify theme "Dawn" to only one per order.

Applications

  • Product information management and editing

How to implement

  • HTML/CSS
  • Javascript
View full details

This is an example of how to set up a limit on the number of items with a specific tag (such as "Purchase Limit") that can be added to the cart (purchase) per order using the Shopify theme "Dawn" without using an app.


An example of setting the theme "Dawn" to restrict products tagged with "Purchase Limit" so that only one can be added to the cart per order.



[Setup Method 1] Add the "Product Page Code" and "Cart Page Code" to the "Customized Liquid Section" in the Header Group


[Setting Method 2] Add a "Purchase Restriction" tag to the target product


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Add "Product Page Code" and "Cart Page Code" to the "Customized Liquid Section" in the Header Group

Related Post