Skip to product information
1 of 1
Published:2024.03.04

Example of setting up Shopify Flow's "Product variant back in stock" to display restocked variants on the product detail page

Example of setting up Shopify Flow's "Product variant back in stock" to display restocked variants on the product detail page

Applications

  • Product information management and editing

How to implement

  • LIQUID
View full details

In Shopify, it is common to implement a notification when a product is back in stock, but here is a way to set it up so that it can also be notified on the product details screen. By adding a unique tag to the restocked variant, the tag can be recognized and a restock message displayed.


Example of setting up Shopify Flow's "Product variant back in stock" to display restocked variants on the product detail page


[Setup method ①] Create a Flow that assigns product tags in the format "bs_[variant id]" when the "Product variant back in stock" trigger is activated.


[Setup Method 2] Add a custom Liquid section to the product template in the theme editor and insert the code


[Additional Information] How messages are displayed for products with multiple variants, a single variant, and products with no variants


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 add a tag with the prefix "bs_" and the ID of the restocked variant

Add a custom Liquid section to your product template in the theme editor and insert the code

Related Post