How can I integrate Klaviyo Back in Stock with an Impulse theme?

How can I integrate Klaviyo Back in Stock with an Impulse theme?

BonzaDogTreats
Shopify Partner
96 1 17

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 🙂

Replies 2 (2)

folz-14
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
</button>

  

doodle94
Visitor
1 0 0

Where do we paste this code? thanks