Stephen Keable
May 15, 2023

--

In my opinion you'd be better linking to the product description page.

However you could create a link with this as the URL for a basic add to cart:-

/cart/add?id={{the_product.first_available_variant.id}}&quantity=1

Although if you have multiple variants for the product this won't be ideal.

--

--

Stephen Keable
Stephen Keable

Written by Stephen Keable

Shopify partner, JavaScript/Liquid/Swift developer, convert to serverless architecture and builder of digital products people love to use since 1999.

No responses yet