Solved

Adding "how did you hear about us" in cart to Dawn theme

NathaliaChua
Tourist
6 0 4

Hi,

 

I've just upgraded my theme from Debut to Dawn, and am trying to add a "hear about us" dropdown in the cart, but I can't seem to find cart.liquid anymore there is only cart.json?

 

I've tried both methods below:

 

1. https://help.shopify.com/en/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-...

 

2. https://ui-elements-generator.myshopify.com/pages/cart-attribute

 

Both require me adding code to the cart.liquid which no longer exists.

 

How can I do this?

Accepted Solution (1)

Savior
Shopify Partner
537 108 161

This is an accepted solution.

@NathaliaChua 

.json file are the new format of store 2.0. you don't have to worry about it. In cart.json you can check which files are used. for example you might see type 'main-cart-items' and 'main-cart-footer' which are the sections included on cart page. you can navigate to this files in sections and add your code where ever you want to display.


If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on mail | Shopify Design Changes | Custom Modifications In to Shopify Theme

banned

View solution in original post

Replies 4 (4)

Savior
Shopify Partner
537 108 161

This is an accepted solution.

@NathaliaChua 

.json file are the new format of store 2.0. you don't have to worry about it. In cart.json you can check which files are used. for example you might see type 'main-cart-items' and 'main-cart-footer' which are the sections included on cart page. you can navigate to this files in sections and add your code where ever you want to display.


If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on mail | Shopify Design Changes | Custom Modifications In to Shopify Theme

banned
NathaliaChua
Tourist
6 0 4

Yes this worked - thank you!

leighmarino
Excursionist
26 0 4

Hi,

 

I am trying to follow this solution and I found the'main-cart-footer' section, but I don't understand - where do I paste the code into the 'main-cart-footer' section? 

 

Thanks,

~ Leigh

Savior
Shopify Partner
537 108 161

@leighmarino 

 

Can i know what do you want to add and where on Footer along with theme name you are using.

banned