Hi,
I was wondering if there is an event variable to display the stock level of certain products so that I can include these in my cart flows to increase scarcity.
The picture attached is the sort of code I am looking for:
Hi,
I was wondering if there is an event variable to display the stock level of certain products so that I can include these in my cart flows to increase scarcity.
The picture attached is the sort of code I am looking for:
Hello
Great question!
This would really all be dependent on the information being passed by your metric/event. From my experience, if you were using one of the ecommerce integration which has a direct integration with Klaviyo such as Shopify, the default events passed by these ecommerce integrations does not provide stock levels as part of their metadata. This isn’t to say you wouldn’t be able to adjust this however.
To have stock levels provided as part of your metric’s event metadata, I would suggest reviewing your ecommerce platform’s backend to see if you could include this information to be passed to Klaviyo. If the ecommerce backend does not support including this information, an alternative solution would be creating your own custom event via API which would include your desired metadata. To achieve this, I would recommend working with a developer you are familiar with or finding a Klaviyo Partner who excels at developmental work.
In addition, I would further suggest taking a look at the following Help Center article we offer on using API to push your own custom events as well as some similar Community posts that touch upon this subject. I’ve included a few examples below:
I hope this helps!
David
Hi
Thank you for your reply.
I am using shopify, and I know that klaviyo is aware of when a product is sold out or not. Therefore I assumed this variable should already be flowing arround in their integration. But if it is not avaialble, I simply have to pass on this opportunity. My experience with API's is not sufficient to build anything like this myself.
Thank you again for your prompt reply.
Have a good day.
Kind regards,
Kai
Hi
Would love to add some more clarity to this great question!
This would really all be dependent on the information being passed by your metric/event. From my experience, if you were using one of the ecommerce integration which has a direct integration with Klaviyo such as Shopify, the default events passed by these ecommerce integrations does not provide stock levels as part of their metadata. This isn’t to say you wouldn’t be able to adjust this however.
As
I do think this is a good idea and would encourage you to look into finding a Klaviyo Partner who could build this out for you if it interests you!
Best,
Taylor
Hi all, we have a similar situation where we would love to show inventory levels from the catalog data Klaviyo is already pulling in from Shopify (as seen on Content → Products → {product} page) eg https://www.klaviyo.com/catalog/variant/3154431193
There are several properties here that would be useful to use in email template logic or to output.
When using this, as an example: {% catalog event.ProductID %}{{ catalog_item }}{% endcatalog %} -- catalog_item only provides a limited number of objects we can reference. No such concept of catalog_item.available_inventory exists, unfortunately.
Thank you!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.