Show a "Get a LINE message when it's back" button on sold-out products, and tell customers about restocks on LINE
- Published
- App version
- v0.2.8
Turn on the theme app embed "Back in stock (LINE)", and customers can sign up for restock alerts on LINE from a sold-out product page. When the product is back in stock, a workflow made from a Shopify Flow template tells them on LINE.

You can show a “Get a LINE message when it’s back” button on sold-out product pages, and tell the customers who signed up on LINE when the product is back in stock.
What you can do
- Product page: When the selected variant is sold out, the buy button is replaced with a LINE sign-up button. Customers sign up on LINE with the button.
- When it is back in stock: A Shopify Flow workflow tells all the customers waiting for that variant on LINE.
- Admin: In the app’s “Back in stock alerts”, you can check the products with people waiting and how many.
A variant counts as sold out when inventory is tracked and “Continue selling when out of stock” is off.
How to use it
1. Turn on the theme app embed
- Open “Back in stock alerts” in the app’s left menu.
- Press “Open app embeds” to open the app embeds in the theme editor.
- Turn on “Back in stock (LINE)” and save in the theme editor.
In the embed’s settings, you can change where the button goes (“Replace the sold-out buy button” or “Show below the buy button”), the look, and the button and description text. The button text is “Get a LINE message when it’s back” at first.
💡 If it does not appear automatically with your theme, place the theme app block “Back in stock (LINE)” on the product page, or add the
data-justflow-restockattribute to the element where you want it to appear. It appears inside that element.
2. Create a workflow from the Flow template
Open Shopify Flow with “Open Flow” in the app’s “Back in stock alerts”, create a workflow from the template “商品が再入荷したら LINE でお知らせ” (Tell customers on LINE when a product is back in stock), and turn it on.
- Trigger: Shopify Flow’s “Product variant back in stock”
- Action: JustFlow for LINE’s “Send LINE back in stock alert”
3. Check how many people are waiting
In “Products customers are waiting for” in the app’s “Back in stock alerts”, products that have people waiting are listed by variant, with the largest number first. When an alert is sent or a customer cancels, that registration disappears from the list.
Customer sign-up
- A customer who is not logged in to the store, or has not linked LINE yet, goes to LINE Login when they press the button, and is registered on the spot when they return.
- The sign-up page lists “Your registrations”, and customers can cancel from there. One customer can register up to 50 items per store.
- A customer who is not a friend of the LINE Official Account sees “Add us as a friend to receive alerts” (the alert will not reach them unless they add the account as a friend) and an “Add friend” button.
The message they receive
The alert is a Flex message with the heading “再入荷のお知らせ” (Back in stock notice), the product image, product name, variant name and price, and a “View product” button. The text is fixed and cannot be changed.
Notes
- An alert is sent once per registration. A customer who wants to be told again registers again.
- The number of people waiting is not limited by the stock count. The alert goes to everyone who is waiting. Stock is judged by the total of all locations.
- Registrations that have not been sent for 365 days are deleted automatically.
- If you used up LINE’s monthly sending quota and could not send, a notice appears at the top of the Dashboard. The registrations that could not be sent stay.