How can I display custom text input in the cart and order?

Hello,

I added the below Liquid Code to add a custom text box to a product but would like the content the customer puts in the text box to show up on the order and in the cart when they check out:

Initials <input required class="required" id="Initials" type="text"

Hi @TFN205

It seems as if your code is not right, so you can fix it as follow


                      
                      
                    

Then, find the product page file, e.g., for Theme Dawn, this file will be main-product.liquid. Find the tag “form” and add the above here

I hope that it works for you.

Thanks!

is there anyway i could apply the text box to just a specific product theme and have it hidden on the default product theme?

Hi @TFN205

This can be checked by product id. You can find the product id as shown below

  • Then, edit the previous code as below. If you want to display on any product, you can add product.id == (your product id) in the {% if %} tag. If you want to display it on multiple products, then add “or” between product ids (in the picture, I’m showing this box on 2 products)

Let me know if it works for you by giving a like or marking as a solution. Thanks

This worked perfectly, thank you so much!!