Hi,
I have added an add to cart button on each product page that lists every product.
When the atc-button is pressed the product is added to the cart but it also redirect the visitor to the cart page (I dont want that).
I wish that the product is added to the cart and have the same notification that appears when you add a product the usual way. I dont wish that the buyer is redirected to the cart.
This is the notification I would like to appear instead of redirecting to cart-page.
The code for the atc-button in the product-card.liquid:
Anyway to accomplish this?
An additional question to; Is is possible to add a new condition that the atc-button is removed/disabled if there is product variants?
Preview here:
https://068fluw7avdo59r7-41288433815.shopifypreview.com
Thanks for your help.