Klaviyo back in stock button has moved after 2.0 theme upgrade

Hi,

We recently updated our store’s theme to the 2.0 version of Prestige, we’ve recently noticed that this has caused the ‘back in stock’ integration with Klaviyo to now display in the wrong area, at the bottom of the product form instead of the previous location underneath the sold-out button.

After looking online I did find a useful fix (link at bottom) that says it may be related to the anchor, and to add in an alternative anchor for the add to cart button however i can’t find the correct ID for the add to cart button for the Prestige theme. I reached out to Shopify support who weren’t able to solve the issue, and I also reached out to the theme developers who only have me the button classes (such as button-primary etc) and not the actual add to cart ID which I believe I need to fix this

Does anyone know how I can easily find the correct ID for the add to cart button so I can insert this into the code as an alternative anchor please?

I’ve added a screenshot of the current code, as well as the potential fix for reference

Thank you!

Current code:

FIX:

https://sternerstuff.dev/2021/12/configure-klaviyo-back-in-stock-notifications-for-shopify-dawn/

@jamiecharlton20

Please share your store URL and screenshot of what do you want!

Thanks!

Hello, Did you happen to find a fix for this? Or anyone else figure out how to get the Klaviyo back in stock code to work on Prestige 2.0 theme?

Theme Prestige 2.0 v 5.6.2 For www.ful.com we are have added the Klaviyo back in stock code

https://help.klaviyo.com/hc/en-us/articles/360001895651-How-to-Install-Back-in-Stock-for-Shopify

we updated the account.

Unlike the Prestige Theme v 4.14.4 where this code worked perfectly creating the button we discovered that the code did not create the back in stock button like before. What we found was below the copy on the PDP page “Notify me when available”.

We updated this code:

replace_anchor: false

to:

replace_anchor: true

This moved the “Notify Me When Available” text to the top of the copy section, removed the “sold out” button. However “Notify Me When Available” does not show as a button. We reached out to Klaviyo support which in the past was super helpful in resolving however now Klaviyo support says they do not support custom themes and the theme developer says to contact Klaviyo about their code. This is one of the key reasons I suggest companies use Klaviyo for this Back in Stock feature so it is a little disappointing to find that to fix I must use a developer. Now I have to find one!

Please note that I have highlighted Notify Me When Available below it does not display with this highlight with the code.

1 Like