I’m hoping someone can help me with the add to cart on my Klaviyo. A little background so you know what I’m working with. I use Shopify Debut theme. I POD with ShineOn and they have their own product pages that has a .liquid file in the theme. I’ve watched all the videos and read the articles(the videos and articles are different. The articles say paste in theme.liquid while Youtube videos say product.liquid). Nothing seems to be working.
My preview item event is already set up(no code was required since it was just a click of a box. Thank you Klaviyo).
One of the issues I’m running into is figuring out the button ID/class. Because I’m using ShineOn for my product pages it has it’s own .liquid file called product.shineon.liquid. This is also the location of the preview item script. When I right-click the add to cart button and inspect, here is the code I have for the button:
<button id="so-btn-add-to-cart-7686243221717" class="so-form-btn-cta-main so-btn-add-to-cart" style="background-color: #000000;
border: 1px solid #000000;
color: #ffffff;
font-size: 20px" data-add-to-cart="">
<span class="so-btn-add-to-cart-vanity-copy" id="so-btn-add-to-cart-copy">Add to shopping bag </span>
</button>
So the big questions are: Am I using button ID or button class? What add to cart variable should I use?Which .liquid file should I paste the code into (theme.liquid, product.liquid, product.shineon.liquid)?
Sorry this is insanely long, I’ve been working all night and can’t get it to work. Thanks for any help!