Have your say in Community Polls: What was/is your greatest motivation to start your own business?

add to cart button directs to cart page

add to cart button directs to cart page

manbru
Pathfinder
129 0 30

Hello,

 

When pressing the add to cart button It directs you to the cart page, but I want it to open the cart drawer. And the weird thing is that's it selected to open the drawer but it dosen't do so??

 

I screen recorded it here so you can see: https://imgur.com/a/PwIpXpL 

 

My product page: https://r1vex.myshopify.com/products/lindberg-alunda-tossor-rosa?variant=50628336910662 

 

 

Thanks for helping!

Replies 5 (5)

Dan-From-Ryviu
Shopify Partner
10261 2038 2109

Hi @manbru 

You can change settings in Sale channels > Online Store > Themes > Customize > Theme settings > Cart > select option Drawer

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

manbru
Pathfinder
129 0 30

yes that is what i've selected, if you watched my screen record

 

But still doesn't open the drawer?

 

 

Dan-From-Ryviu
Shopify Partner
10261 2038 2109

You are using custom Add to cart button, not Buy button of the them that is why it is not open cart drawer

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

manbru
Pathfinder
129 0 30

I found the code for the button, but not sure how to make it open the cart drawer instead:

<form method="post" action="/cart/add" enctype="multipart/form-data" id="product-form">
    <input type="hidden" name="id" value="{{ selected_variant.id }}">
    <button type="submit" class="product-form__submit button button--full-width button--primary">
        <img class="cart-icon" src="https://cdn.shopify.com/s/files/1/0831/6125/2166/files/Leksaker.png?v=1720806140" alt="Varukorg" />
        <strong>Lägg i varukorgen</strong>
    </button>
</form>

 

 

Bundler-Manuel
Trailblazer
359 23 41

Hey @manbru since that approach didn’t work, I’d suggest trying this solution from an ex-Shopify community thread which involves using an app https://community.shopify.com/c/shopify-discussions/how-to-stop-add-to-cart-buttton-redirecting-to-c... 

Hopefully, that should be able to sort it out.

Emmanuel
Please let me know if it works by marking it as a solution!
Bundler - Product Bundles app, a great bundle app for Shopify, with glowing user testimonials and a free plan.