Trouble with add to cart button, Venture theme

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.

1 Like

@entranced

you theme may allow this please check theme setting

Hi,

Thanks for the answer. I cant find anything in the theme settings to do this.

I tried to use the same code that is used on the production page and add it to my new add-to-cart button. But that didnt work either.