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.