Solved

Notify me when available button not showing sucess message

  • 16 January 2023
  • 1 reply
  • 160 views

Badge +1

The notify me when available button will show the success message if they have “add me to your newsletter” button unticked but when someone ticks it, it doesn’t show anything. 

 

Does anyone know a fix for this to showing the success message for both?

Unticked and shows sucess message
Grey’s out button when ticked no success message

 

Also, does anyone know how to make the border around the email black? 

icon

Best answer by Dov 17 January 2023, 15:56

View original

1 reply

Userlevel 7
Badge +61

Hi @RedSolider,

Thank you for sharing this question with our community.

Since this is an issue with the checkbox referencing the newsletter list, I recommend double-checking that you are calling out the correct list ID in your back in stock code. Here’s an example of where the list ID reference would live within the code:

<script src="https://a.klaviyo.com/media/js/onsite/onsite.js"></script>
<script>
var klaviyo = klaviyo || [];
klaviyo.init({
account: "PUBLIC_API_KEY",
list: 'LIST_ID_HERE',
platform: "shopify"
});

This is also called out in our documentation here. If the ID is referencing a segment or there is no call-out to a specific list ID in the code, these could be explanations why this button is being greyed out upon ticking the box. This could also remedy the success message issue.

It’s also worth mentioning that installation of back in stock is not supported for Shopify stores using custom themes. For a list of supported themes, see our article on back in stock styling code snippets for free Shopify themes.

With respect to the border question, are you referencing the email text input, or something else? We have a list of modal settings that allow you to customize various parts of the back in stock modal.

I hope that’s helpful and thanks for being a community member.

Reply