Line Item Property on Dwell Theme

I am selling baby clothes and I want my customers write the baby name in a text box in the product page. So I can apply the name onto the cloth. So I checked everything I can to make that happen. A couple of apps, codes etc. but I couldn’t find a proper free app nor I have code information. So I saw line item property thing. I have been trying to embed this code in the Dwell code but the sources are mainly about Dawn theme, not Dwell. How can I make this happen? Inside the Dwell code, I can’t find product form etc.

Hello, Thank you for returning my post. It is on draft and I am working on it currently. I don’t know how to send store URL and collab code. wishes,

You can visit https://help.shopify.com/en/manual/online-store/themes/adding-themes#share-theme-preview to learn how to share a preview.

Since Dwell is a part of Horizon family, you can also search for solutions for Horizon/Atelier, etc..

Yes, Line item properties are the way to go, however, you need to ensure that these input’s are either inside the form or have a form attribute, otherwise they would not be submitted.

The code for Horizon family themes can be like this:

{%- assign product_form_id = 'BuyButtons-ProductForm-' | append: section.id -%}
<label>
Provide extra info:

<input 
  type=text 
  form="{{product_form_id}}" 
  name="properties[Extra Info]"
>
</label>

This will work if rendered inside the same “product info” section, so you can, for example, use “Custom liquid” block to use this code without editing your theme code. Like this:


if my post is helpful, please like it ♡ and mark as a solution -- this will help others find it