How to make cart drawer as a default

How to make cart drawer as a default

amisha-29
Shopify Partner
93 1 23

In my global schema I make the cart drawer as a default but it is still not changing on my theme is there anything I'm missing. And also i give the value true for the Vendor it is also not changing please let me know

amisha29_0-1748958450927.png

 

Replies 3 (3)
amisha-29
Shopify Partner
93 1 23

I'm using dawn theme and I'm customizing that theme only so in my settings_schema.json I changed the default value of popup notification to drawer but in my editor I cannot see any changes.

amisha29_0-1748976508682.png

You can see the vendor is also not showing true value

amisha-29
Shopify Partner
93 1 23

Can you tell me the steps because I'm not able to understand properly. All I know is if i change the default value then it started reflecting in the theme editor but this time it not works so please tell me the steps. I'm using dawn theme

Small_Task_Help
Shopify Partner
1120 53 111

Hi,

Hope this will work

- Cart Drawer not working- Add Liquid logic + check JS is opening it
- Vendor name not showing-Use {{ product.vendor }} + checkbox logic

JavaScript to Open Drawer example

document.querySelector('.add-to-cart').addEventListener('click', function() {
  // logic to open the cart drawer
  document.querySelector('.cart-drawer').classList.add('open');
});
To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad