How to add "how did you hear about us" into checkout?

Topic summary

A user attempted to add a “how did you hear about us” field to their Shopify checkout page following AI-generated instructions that referenced editing checkout.liquid, but discovered this file doesn’t exist in their theme.

Key clarifications provided:

  • Direct checkout customization is only available on Shopify Plus plans
  • Standard plans cannot edit the checkout page directly

Alternative solution:

  • The field can be added to the cart page instead using “cart attributes”
  • This involves adding custom form fields that capture customer information before checkout
  • Community members shared relevant documentation links for implementing cart attributes

Resources provided:

  • Shopify’s official guide on asking how customers heard about the store
  • Community tutorial on using cart attributes to collect additional information

The discussion remains open with the original poster expressing interest in learning the cart attribute method.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hi guys, I was trying to follow the below suggestion from a Gemini search result from google search, but the checkout.liquid doesn’t seem to exist, any ideas? Thanks!!

Gemini’s output:

To add a “how did you hear about us” field to your Shopify order page, you need to customize your theme code by adding a custom field within the checkout form, usually done by creating a liquid snippet and inserting it into the relevant section of your checkout template; this requires basic coding knowledge or the use of a Shopify app that allows for custom checkout fields.

Here’s a breakdown of the steps:

  1. Access your theme code:
  • Go to your Shopify admin.
  • Navigate to Online Store > Themes.
  • Select the theme you want to edit and click “Actions” > “Edit code”.
  1. Create a liquid snippet:
  • In the “Snippets” directory, click “Add a new snippet”.
  • Name it something like “how-did-you-hear”.
  • Paste the following code into the snippet, customizing the options in the dropdown as needed:

Code

<div class="form-field">
  <label for="how-did-you-hear">How did you hear about us?</label>
  <select name="how-did-you-hear" id="how-did-you-hear">
    <option value="Social Media">Social Media</option>
    <option value="Friend Recommendation">Friend Recommendation</option>
    <option value="Search Engine">Search Engine</option>
    <option value="Email Marketing">Email Marketing</option>
    <option value="Other">Other</option>
  </select>
</div>
  1. Add the snippet to your checkout template:
  • Open the “checkout.liquid” file in the “Sections” directory.
  • Find the section where you want to add the “how did you hear” field (usually near other customer information fields).
  • Paste the following code to insert the snippet:

Code

{{  'how-did-you-hear' |  snippet  }}

Important Considerations:

  • Theme compatibility:
    Depending on your theme, the exact code structure and where to insert the snippet might differ.

  • Required field:
    To make the “how did you hear” field mandatory, add the “required” attribute to the

@dunnydoo

Hi, Your solution you found is not possible. Shopify do not allow edit checkout unless you have a plus plan.

You can add this customization in the cart page using cart attributes

Hope this helps

HI @dunnydoo

Please check this link https://help.shopify.com/en/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-vintage-themes/ask-how-customers-heard-about-your-store to fulfill your request

I hope this helps

Best,

Daisy

1 Like

So it can be done via the cart ? do you have any links you could provide to learn how to do this? thanks! :slightly_smiling_face:

https://community.shopify.com/c/shopify-design/cart-use-cart-attributes-to-collect-more-information/m-p/613718

This shows how to add new features using cart attributes.

Feel free email me if assistance is needed