Skip to product information
【Dawn】Shopifyで独自タグを使って再入荷したバリエーションを商品詳細ページに表示する際に 再び売り切れた商品ではそれらを非表示にする方法
Published:2024.03.05

[Dawn] How to use custom tags to display restocked variants on product detail pages in Shopify, but hide them for products that are sold out again

When using this method to notify customers of restocked variants on the product details page in Shopify, it may be best to exclude them from notifications when the product goes out of stock again. Here's how to set up a Flow that uses the "out of stock" trigger to automatically delete the relevant tags.


How to hide re-sold out products when displaying restocked variants on your product detail pages using custom tags


[How to set it up] Create a Flow that deletes product tags in the format "bs_[variant id]" when the "Product variant out of stock" trigger is activated.


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

View store information

[Dawn] How to use custom tags to display restocked variants on product detail pages in Shopify, but hide them for products that are sold out again

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

Sample Codes

Test Theme :Dawn/Rise 15.2.0

An action to delete the tag that combines the prefix "bs_" with the id of the out-of-stock variant

↗ Related Post