I am setting up a back in stock flow for my BigCommerce website. I added the script and it has collected emails. Below are the 2 issues I am having with the back in stock flow and script.
- The “notify me when available” button appears on one product that is out of stock but not another that is similar. Everything on the back end is the exact same for these two products, yet the green one does not show the “notify me when available” button. Below is my script code (without account information).
var klaviyo = klaviyo || ;
product_page_text: "Notify Me When Available",
body_content: "Subscribe to receive an email when this item is available for purchase.",
button_label: "Notify me when available",
subscription_success_label: "You're in! We'll let you know when it's available.",
additional_styles: "@import url('https://fonts.googleapis.com/css?family=Helvetica+Neue');",
newsletter_subscribe_label: "Add me to your email list.",
- When I go to preview the email it shows “ Unable to find item with code: . It may have been deleted.” I am not sure if this is a preview issue or if the flow is not pulling the correct information.
Best answer by thoytView original
After speaking further with Klaviyo’s team they have explained that the issue was needing to select a color/size before the button would populate. Also, the flow would populate correctly after a product goes back in stock.