I can't figure out how to add specific sizing to my product on my page

I want to sell custom made trousers/pants on my page.
On the product page for my trousers, I created the colors, and fabric type already. But I need to provide 3 fields for my customers to enter their measurements (length, waist, hips). Either they should type their measurements or ideally they should choose from a drop down menu to choose what cm their entry is.
I couldn’t figure this out.
Under the variants, it gives me an option for sizing where I can type small, medium, large etc. But I need my customers to provide me their measurements. Is there anyway I can add these fields before they go to their cart?
I have added a short video here. See the yellow text that suggests what I am needing.

Hello @TangoTrousers

Greetings from the Store Watchers Support Team! Happy to help you today.

You can use line item property. Please check the below code.


  
  

  
  

  
  

You need to add it to your product template. Below are the steps

  1. Go to Online Store → Edit code.

  1. Open the product template and paste the code above.

Let me know if need further assistance

Regards,

Store Watchers Support Team

hi.
Thank you very much.
I found the code and found the product template and pasted it.
it didnt like it.
Is there any particular place i can paste this code to?
Ideally it should be after the color choices and before the “add to the
cart” button.

I think i need one more step, because i am not good at coding.
:slightly_smiling_face:
May I request further help?

Murat

it gives me an error message. What am I doing wrong? I attach my screen shot of the code.

Hello @TangoTrousers ,

Can you let me know what theme you’re using?

Please check the below screenshots for your reference.

You can directly type in the search box ‘product’ and then in the Sections folder you can find the product template I was referring to. Look for product-template.liquid if you are using a basic theme. Depending on the theme you used, sometimes the name is main-product.liquid or static-product.liquid. When pasting the code, look for the add to cart button code as per my screenshot above.

Let me know if need further assistance

Regards,

Store Watchers Support Team

Thank you.
I am using the DAWN theme. It was a free default one I ended up with.

Hello @TangoTrousers ,

Thank you for letting me know the theme name.

Please check the updated screenshots below specific to the Dawn theme.

Let me know if need further assistance

Regards,

Store Watchers Support Team

Hello Store watchers,

is their any way you can help me add a code to get waist and inseam option on the product page for I can get customers specific measurements for the trousers I want to make