How can I properly add a line item product property in a customizable template?

Antonio84
Shopify Partner
46 1 2

Hello I need to add a line item product property.

I created a customizable product template.

I added the following code between the liquid form code of the custom product template liquid:

        		<div class="line-item-property__field">
                <label for="your-name">Your name</label>
                <input required class="required" id="your-name" name="properties[Your name]"></input>
				</div>

 The input tag is showing on the product page but the required attribute doesn't work, I can checkout the order or insert the product into the cart.

What is the correct way to achieve that?

Also I want embed the line item property text into the order, how to do that?

 

Thanks.

Reply 1 (1)

Himanipanchal07
Shopify Partner
18 2 13

Hi @Antonio84 , 

I think your theme not supporting line-item properties, 
Can you please share your site url?, so I can check about it.

Have a great day.

HIMANI PANCHAL
LEAD TECHNOLOGY ARCHITECT | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- Confused? Let me know here: himanip.itpath@gmail.com