I would like users to be able to click on a product from within the cart and get back to the product page. I am using the (recommended) products list TV, so I understand that multiple product variations should link to the same resource. I don’t think I will ever have one product on multiple resources, so is there a way to get the link to the resource with the product from the cart?
Enable the ItemData module (ships with core) for the link
field, and in your add to cart form add a hidden input with name link
and the resource id as its value. If you copied the add to cart form from the docs recently, that might already be there and you just need to enable ItemData.
2 Likes