This guide explains how to integrate the Back-in-Stock notification functionality between Shopify and Voyado Engage. This feature enables customers to subscribe to notifications for out-of-stock products and receive alerts when they are restocked.
Prerequisites
Before setting up the Back-in-Stock functionality, ensure the following:
- A connected product feed is set up in the Engage environment.
- The Back-in-Stock module is enabled in Engage.
- A Back-in-Stock email template is available in Engage.
- All products (including out-of-stock items) must be present in the product feed. If a product is not in the feed, no notification can be sent for it.
Setting Up Back-in-Stock Integration
Enable Inventory Sync in Voyado Engage App
- Open the Voyado Engage app in Shopify.
- Navigate to Settings.
- Locate the Inventory Sync toggle and enable it.
- Ensure inventory levels sync correctly from Shopify locations that fulfill online orders.
Add Back-in-Stock Theme Block in Shopify
- In Shopify Admin, go to Online Store Themes.
- Click Customize to open the Theme Editor.
- Select Product Templates and find the Default product page template.
- Add the Back-in-Stock block to the template.
- Customize the form if needed.
- Save the changes.
Configure Product Settings for Subscription Form
For the subscription form to appear on the product page:
- Ensure that Track quantity is enabled in Shopify Admin.
- Ensure that Continue selling when out of stock is NOT checked.
Automate Notifications in Voyado Engage
- In Voyado Engage, navigate to Automation.
- Create a new automation using the Back-in-Stock trigger.
- Set up the automation to send email or SMS notifications when a product is restocked.
- Save and activate the automation.
Implementing Back-in-Stock for Shopify Headless
If you are using a Shopify headless setup, you will need to implement the subscription form manually using Voyado's API. The API allows customers to register their interest in out-of-stock products without using Shopify’s built-in theme editor.
To implement this, refer to Voyado’s Back-in-Stock Headless API documentation: Headless API Guide
Steps to Implement:
- Use the API to collect customer information and product details.
- Ensure that product IDs match those in Voyado Engage.
- Send the subscription request to the Voyado Back-in-Stock API endpoint.
- Handle customer confirmation and manage subscription preferences programmatically.
- Test the integration to ensure customers receive notifications when products are restocked.
Testing and troubleshooting
Test the feature by marking a product as out of stock, subscribing to notifications, and then restocking it to ensure an email/SMS is received.
If notifications are not being sent, check:
- The product feed includes the item.
- The email template is correctly set up.
- The automation is active in Voyado Engage.
Article last reviewed
Comments
0 comments
Please sign in to leave a comment.