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?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024