Line Item Property Generator

What are Line item properties?

Line item properties are custom form fields that let you collect additional information from buyers on the product page, such as names, engraving text, color choices, or uploaded files. These values are sent with the product when it’s added to the cart, displayed during checkout (if enabled), and stored in the resulting order so merchants can reference them during fulfillment.

Set your form field

Mark the field as mandatory before adding the product to cart.
Add form="{{ product_form_id }}" to inputs — use this when the field is placed outside the main product form.
The variable {{ product_form_id }} can be found in the form tag inside the buy-button.liquid snippet/block or the main-product.liquid section.
Hide this field at checkout but still stores its value in the order. Shopify hides fields whose names start with an underscore (_).

Preview

Generated Code