How to pass customer input from text box to Notes from customer

Hi all!

I am offering a customizable service where the customer can provide a name and number.

so in main-product.liquid I added a section with these 2 text boxes.


  

How can I pass this information to my order, meaning showing at Notes from the customer for example?

I probably need to add some code o a submit button somewhere?

Thanks a lot for your help!

1 Like

Hi @miltokas ! :waving_hand: The order note is primarily for customer usage to give you overarching info, avoid using it for tangential purposes.

To show line item properties to the customer either customize the order notification template, or the classic-customer-accounts theme account templates to expose the values of the properties.

:bomb: Assuming that the line-item-properties are actually properly passing through to the order in the first place. However your code snippets don’t indicate if you put the code inside the actual product form elements/liquid-tag or are using a form attribute to relate the inputs to the product form.

If you need this fixed, or theme customization then contact me by my email for services.

ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact info in forum signature.

I actually just want to pass the information from those two text boxes to the order page somehow to see what information the customer has provided.

Hi @miltokas

Check this one. This is for adding Custom Text field on Shopify Product Page

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi @Made4uo-Ribe

Thanks a lot for the link.

I followed the guide 100% and I have two issues:

  1. The required option has no effect
  2. It doesn’t show as message at checkout as described in the tutorial

This is the code I added:


  
  

and the result is the following. The textbox is there but the required has no effect and doesn’t show as message in the check out:

Any clue what can possibly be?

Thanks!