Howdy folks,
We’re implementing back in stock for a client on Shopify and of course it works perfectly for them. When stock equals zero the sold out button appears and the BIS button is displayed. However, our client now wants to show the back in stock button when their inventory is at 3 or less. This allows them to avoid over selling and keeps them ahead of their stock levels.
My approach to implementing this was to physically implement the BIS button in the product template when inventory <= 3:
{% if stock_available <= 3 %}
<a class="klaviyo-bis-trigger" href="#">Notify Me When Available</a>
{% endif %}
Of course, this does display the BIS button but the actual triggering of various JavaScript elements does not occur as Klaviyo.js is listening out for stock levels to equal 0 before working it’s magic. Does anyone know how I can override the stock level threshold so Klaviyo’s back in stock functionality kicks in when stock is less than or equal to 3?
Great so see the forum getting so much action already!
Loughlin.