Personalized checkout and custom promotions with Shopify Scripts
Hi there,
i have created a custom add to cart button on my collection page.
I need the add to cart button to show a pop-up (added to cart) instead of redirecting to the cart page.
The same as the product page add to cart button actually.
I use DAWN theme.
How can i achieve this?
Code used:
<form class="add-to-cart-form" method="post" action="/cart/add">
<input type="hidden" name="id" value="{{ product.variants.first.id }}" />
<input type="submit" value="{% if product.variants.first.available or product.variants.last.available %}{% else %}{% endif%}" class="buy-button-below-product" {% unless product.variants.first.available or product.variants.last.available %}disabled{% endunless %} />
</form>
The cart/add action is wrong in this usecase i think.
Thanks alot!
@ElliotM
Unfortunately there is no simple way to achieve this, it would require a custom coded solution.
Can someone help me with this?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025