Shopify themes, liquid, logos, and UX
Hi @hedy,
This is my recommendation for your question. You can change your code to:
<a href="/cart" class="purchase button" id="add">GET THE JOURNAL</a>
Please try this and let me know if you need further support from us.
Hope this helps!
Hi @LitExtension,
Thank you for your response. The code still does not seem to work: I think the code you provided redirects to the cart, but since this button is going to be on a regular page (not a product page), it doesn't add anything to the cart. I need it to add a specific product to the cart when you push the button, so that's the part that I'm stuck on.
Thanks!
Hi @hedy,
Can you please share with me your store URL? I will check it and figure out the solution for you!
Have a great day!
Hi,
Try using this code {{ 'products.product.add_to_cart' | t }} on the onclick. Hope it works
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024