Klaviyo Back in Stock

Shopify Partner
66 0 13

I've been using Klaviyo BiS functionality on my Minimal store and it's been great. I've just rebuilt on Impulse, and adding BiS is my last task. 


Unfortunately it appears that the standard code that Klaviyo supply for theme.liquid doesn't work on a third party theme.


Can anyone help me out and let me know what I need to do please?


Thank  you 🙂

Reply 1 (1)
Shopify Partner
3 0 0

You need to follow the instructions on this page as you did for your previous theme. 

For unsupported (custom) themes - you need to add a class "klaviyo-bis-trigger" to the add to cart button when your item is out of stock.


Something like the below should work;


<button type="submit class="btn {% if product.selected_or_first_available_variant.inventory_quantity <= 10 %}klaviyo-bis-trigger{% endif %}">
	Add to Cart