Skip to product information
1 of 1
Published:2024.12.07

An example of how to hide inventory status displayed on the product detail page of the Shopify theme "Dawn/Rise" instead of changing it when it is below a certain threshold.

An example of how to hide inventory status displayed on the product detail page of the Shopify theme "Dawn/Rise" instead of changing it when it is below a certain threshold.

Applications

  • Product information management and editing

How to implement

  • HTML/CSS
View full details

The product template: Product Information section of the Shopify theme "Dawn/Rise" has an inventory status block that displays the number of items in stock and changes the display when a certain quantity is reached. However, we sometimes receive requests to disable the display altogether depending on the stock quantity.

◆ Benefits of implementation ・Providing appropriate information according to stock status ・By displaying only when stock falls below a certain level, you can emphasize low stock conditions

◆Specific setup steps ① Add a scheme to "sections/main-product.liquid" and set the required labels in "ja.schema.json" ② Implement the code in "sections/main-collection-product-grid.liquid" ③ Add the inventory status to the product information section of the product template, turn on the switch to toggle display/hide, and specify the reference value


An example of how to hide inventory status displayed on the product detail page of the theme "Dawn/Rise" instead of changing it when it is below a certain value.


[(For the Rise theme) Setting procedure ①] Add the schema to "sections/main-product.liquid" and the label to "ja.schema.json"


[(For the Rise theme) Setting procedure ②] Add the code to "sections/main-collection-product-grid.liquid"


[Setting method (for the Rise/Dawn theme)] Specify the base stock quantity using the setting item added to the inventory status of the product information template.


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 schema to "sections/main-product.liquid"

Related Post