Skip to product information
1 of 1
Published:2024.06.13

Example of setting up the Shopify theme "Dawn" to display a "Limited Stock" label when inventory falls below a certain level on a collection page.

Example of setting up the Shopify theme "Dawn" to display a "Limited Stock" label when inventory falls below a certain level on a collection page.

Applications

  • Collection information management and editing

How to implement

  • LIQUID
  • HTML/CSS
View full details

This is an example of how to display a "Limited Stock" label on a collection page in the Shopify theme "Dawn" when the stock of a product (or the total stock of a product with multiple variants) falls below a certain number.


Example of setting to display "Limited Stock" label when stock quantity falls below a certain level on the collection page of the theme "Dawn"


[(For the Dawn theme) Setting method ①] Add the scheme to "main-collection-product-grid.liquid" and the label to "ja.schema.json"


[(For the Dawn theme) Setting method ②] Add code to "main-collection-product-grid.liquid" and "card-product.liquid"


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 scheme to "main-collection-product-grid.liquid"

{%- endif -%}
Related Post