Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

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