Liquid, JavaScript, themes, sales channels
Hi. I can't find a way to do this. I have this for adding the ATC, but need to figure out how I would go about showing different button
for variant products on the collections page.
<form method="post" action="/cart/add">
<input type="hidden" name="id" value="{{ product.variants.first.id }}" />
<input type="submit" value="Add to cart" class="btn" />
</form>
This works great for simple products, but how can I do a if else for the "View Options" button. Thanks.
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