Why is the line item property not appearing in my cart?

Topic summary

Main issue: a custom “Name” line item property added on the product page is not appearing in the cart after add-to-cart.

Context: The input field uses name=“properties[Name]” and was added via custom code; a product link was provided.

Analysis: The likely cause is that the input is not inside the product’s tag or is missing a form attribute, so it isn’t submitted with the add-to-cart request. Code placement and form association vary across themes, and older tutorials may not match newer theme structures.

Recommendations:

  • Place the input field within the product form markup.
  • Or add a form attribute pointing to the product form ID (e.g., form=“product-form-{{ section.id }}” or the correct form ID for the theme).
  • Consult Dawn-based theme references and forum posts about product_form_id (GitHub search link provided).

Definition: Line item properties are custom fields attached to individual cart items and should appear in the cart and order.

Status: No confirmation of a fix yet; awaiting implementation and follow-up.

Summarized with AI on January 13. AI used: gpt-5.

hey guys,

i wanna add a line item field into my shirtshop for name customization but it seems that the property not appering in my cart for some reason.

I added this custom code:

Name (Bitte vorab "Mit Personalisierung" anwählen)

Link: https://shop.puk-schmiedel.de/products/testproduct

please help :confused:

@marvinsignpoint What did you do and when and where, etc.

Just posting the code by itself doesn’t communicate anything about the surrounding behavior.

Code is still dependent on HOW and WHERE you put that code.

General guess you followed an old vintage tutorial didn’t adapt it for a newer different themes either A)did not put the code with in the products actual tag

or B) are not giving the input a form attribute to associate it to a tag.

So the input doesn’t get submitted because it’s not part of any forms.

Roughly this

should be like this

or

But this will vary WILDLY among themes.

Search the forums for more Origin is a Dawn based themes so lot of overlap on those themes forum posts.

Or see the dawn reference

https://github.com/search?q=repo%3AShopify%2Fdawn%20product_form_id&type=code