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?
User | RANK |
---|---|
4 | |
2 | |
2 | |
2 | |
2 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023