Liquid, JavaScript, themes, sales channels
Apparantly, this most useful feature of Klaviyo only works for older stores (post Dec 5th 2017).
Anyone have some thoughts on a good workaround?
Solved! Go to the solution
This is an accepted solution.
You'd need get some confirmation of what the actual underlying technical issue is to even attempt a workaround. Like if it's a completely backend issue on the apps part you'll need another app.
If it's some javascript kludge then sometimes things like this are only fixed by debugging the javascript find stoppage conditions and monkeypatch them or the properties/variables used in the logic.
Without knowing for sure what the underlying technical issue is your not going to get very far with casual development.
Or even with api dev either prolly https://developers.klaviyo.com/en/docs/how-to-set-up-custom-back-in-stock
There may have been a change to the inventory api , or ajax api?, unfortunately the public changes logs are not strict and accurate timelines.
Suspect changes on shopify's side, shopify decided to nuke inv qty's from the ajax instead of providing it as a setting, so things that need to check stock on the frontend cannot do so with just onsite ajax.
Please be specific , link to any relevant documentation , including explanations of why it doesn't work on older stores.
@PaulNewton Sorry, I meant pre- not post 2017. I am tired.
https://help.klaviyo.com/hc/en-us/articles/360001895651-How-to-Install-Back-in-Stock-for-Shopify
Note: The following function is only compatible with Shopify stores created before December 5th, 2017.klaviyo.init({ account: 'PUBLIC_API_KEY', platform: 'shopify', display_on_policy_continue: true });
I'm wondering what happened on that date, seems so arbitrary.
Trying to get this to work with a lightly customized version of Dawn.
This is an accepted solution.
You'd need get some confirmation of what the actual underlying technical issue is to even attempt a workaround. Like if it's a completely backend issue on the apps part you'll need another app.
If it's some javascript kludge then sometimes things like this are only fixed by debugging the javascript find stoppage conditions and monkeypatch them or the properties/variables used in the logic.
Without knowing for sure what the underlying technical issue is your not going to get very far with casual development.
Or even with api dev either prolly https://developers.klaviyo.com/en/docs/how-to-set-up-custom-back-in-stock
There may have been a change to the inventory api , or ajax api?, unfortunately the public changes logs are not strict and accurate timelines.
Suspect changes on shopify's side, shopify decided to nuke inv qty's from the ajax instead of providing it as a setting, so things that need to check stock on the frontend cannot do so with just onsite ajax.
Thanks, Paul. That's really insightful and interesting as well. I can certainly understand why Shopify turned it off.
I'll see if I can tap into the listener on the variant buttons and show my own button and modal. First, sleep and think about how important this is.
Thank you.
User | RANK |
---|---|
33 | |
27 | |
18 | |
9 | |
7 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023