Skip to product information
1 of 1
Published:2024.03.05

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

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

Applications

  • Product information management and editing

How to implement

  • LIQUID
View full details

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.

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