Adding a mandatory field in product pages

Hi.
I’m using the Venture theme and I’m selling shoes.

I want to add a mandatory text field, in the Product page or Checkout page.
For customers to type in their foot measurements in centimetres or inches, so that I can get precise foot measurements.

HI,

Hope you are well.

Do you know how to update/change liquid code?

If you don’t have knowledge regarding this then you required shopify developer to do this.

Let me know if you want me to do this task.

Hello @SamGXO ,

You have to go with product page. I think you have to add a select-box with option centimeters or inches.
Once customer make the selection then you have to show the text field to input the size.
You have to just write the JS code rest field you can generate here https://ui-elements-generator.myshopify.com/pages/line-item-property

Thanks

Thanks, man.
This worked for me.

Is it possible to show this field only for a certain collection of products? Or products with a certain metafield attached to them?

@motiv

Yes possible in both way, easiest way for you is meatfield.
And metafield and warp your custom field in IF condition.
e.g. If product metafield have specific value then show the custom field.

Thanks

Oh ok, I will look into that.

Also, is it possible to add a price for properties? So for example, if a user wants to add gift wrap, they can checkbox the field and it will add $5 to the product price?

with properties no but there is alternate available. I’ll share the example through DM.