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

Topic summary

Adding a customer feedback dropdown to the cart after migrating from Debut to Dawn raised confusion because cart.liquid no longer exists; Dawn uses JSON templates.

Key change: Dawn (Online Store 2.0) uses cart.json, which references sections (e.g., main-cart-items, main-cart-footer). Custom inputs like a “how did you hear about us” field should be added inside the relevant section files, not in cart.liquid.

Outcome: The guidance to edit the section files worked for the original requester.

Follow-up: Another participant found main-cart-footer but is unsure exactly where within that section to paste the code. The helper requested details on what they want to add, the desired placement, and the theme name to advise further.

Notes:

  • “JSON templates” define page structure and include “sections,” which are modular code files where UI elements are implemented.
  • No specific code snippet or final placement instructions were provided in the thread.

Status: Partially resolved (original case). The follow-up query remains open pending more details.

Summarized with AI on February 5. AI used: gpt-5.

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-vintage-themes/ask-how-customers-heard-about-your-store

  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?

@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

1 Like

Yes this worked - thank you!

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

@leighmarino

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