Line Item - Custom Projects

Hi

I have the free Dawn theme which uses JSON.
I have custom products and I am trying to add a line item at checkout for each product called ‘engraving’ or ‘name’. All the tutorials deal with product.liquid not product.json.

can anyone help on how I go about this?

Hi @ManaakiToi , To add the line item you need to add the below code to the “buy-button.liquid” in side the form tag. Review the screenshot I have attached:


  
  

Hi,

Need to use custom line item properties. Since Dawn does not use traditional .liquid files for product pages, you will need to edit the JSON files and potentially customize your cart or checkout pages to reflect these properties.

Custom Input Field product-form section code example


Thanks for your help.
The buy-button.liquid is that under snippets?

Hi @ManaakiToi , Yes the buy-button.liquid is under snippets.