Adding a mandatory field in product pages.

Solved
SamGXO
Tourist
8 0 0

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.

0 Likes
Akibhusen
Excursionist
196 37 68

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.

Akibhusen Shekh | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
0 Likes
Guleria
Shopify Partner
1455 299 414

This is an accepted solution.

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

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
0 Likes
SamGXO
Tourist
8 0 0

Thanks, man. 
This worked for me.

0 Likes
motiv
Tourist
10 0 1

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

0 Likes
Guleria
Shopify Partner
1455 299 414

@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

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
0 Likes
motiv
Tourist
10 0 1

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?

0 Likes
Guleria
Shopify Partner
1455 299 414

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

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
0 Likes