In short, I want to render a product or a collection on a “dedicated” page, so the “add to cart” functionality is exactly the same, as it would be on a collections page.
I’m using a custom theme and trying to render products on a page with a “quick add” cart button:
{% for product in collections['my-collection'].products -%}
{% render 'card-product', card_product: product, show_quick_add: true %}
{% endfor %}
The issue is that when I click on “add to cart” button, instead of triggering the drawer or the cart popup, I’m being redirected to the /cart itself, which is not what I want.