how can i change cart page to cart drawer only.

how can i change cart page to cart drawer only.

vishalkhurma
New Member
8 0 0

in this code below, i want the "quick add" functionality which comes when i hover over the image, but on a permanent button below the price. when i click on "quick add", it opens the drawer, but when i click on the add to cart button i made, it goes on a whole separate cart page. how can i change the behavior so that it gives me a toast saying "added to cart" instead of opening any drawer or page? 

 

code : https://pastecode.io/s/cmkbp76c

 

website: www.koaluxury.com

 

thanks in advance!

Replies 3 (3)

DitalTek
Shopify Partner
891 103 122

Hi,

What is theme you are using on your store?

First, you can check on setting of that theme, find to cart settings on Global setting and check here to change show cart-drawer instead of redirect to cart page.

If in case theme not support that feature, you need to add that feature by code. But i guess on all theme has support that feature show the cart-drawer.

- You can please Like and Accepted Solution if my suggestion helpful.
- And you want to hire developer Theme or App Shopify => Feel free to send me a DM or contact to us via Email | WhatsApp
- Website: ditaltek.com
vishalkhurma
New Member
8 0 0

i am using the broadcast theme. there is no option to change the type of drawer. i am not understanding how to do it by code

DitalTek
Shopify Partner
891 103 122

Oh, if your theme was bought on Shopify themes, you can asking help from theme's author. If not i can do it or you can asking to other development who familiar with code and Shopify can help you.

- You can please Like and Accepted Solution if my suggestion helpful.
- And you want to hire developer Theme or App Shopify => Feel free to send me a DM or contact to us via Email | WhatsApp
- Website: ditaltek.com