Hello,
I want to add the Back In Stock flow button so it shows “email me when back in stock” on the product page. I followed the instructions and read all the similar problem people had in the community page. This post describes the similar problem that I had. I tried the solution in there and stuck at 1 step.
I would also check the Add to Cart button. The Add to Cart form needs to be present on the product page in order for the Klaviyo Out of Stock code to work. Some themes may remove these by default when there is no stock. To check if this is there, you can use the following snippet inside of the javascript console:
I would also check the Add to Cart button. The Add to Cart form needs to be present on the product page in order for the Klaviyo Out of Stock code to work. Some themes may remove these by default when there is no stock. To check if this is there, you can use the following snippet inside of the javascript console:
document.querySelector('formyaction="/cart/add"]')
If it returns null, that means there is no form. And you would need to add a form element like:
<form action="/cart/add"...></form>
Could anyone please show me how to do this step? Thank you.