All things Shopify and commerce
I use dawn theme and use the standard variants that Shopify offers. I want to have a text field and a drop down menu to be shown when the the second variant pill is selected. When the first variant pill is selected, the text field and the drop down menu should be hided. I don´t know how to implement this logic and where I have to put the code... I am searching for a solution for over 2 months now 😞
I would be very happy if anyone could help me 🙂
Hi @porsche334 ,
To achieve this you should create a metafield at variant level type of true/false then custom code in theme.
To hide show the input field.
Hope it will help...
Thank you for your answer 🙂 can you tell me what the custom code would look like ?
Hi @porsche334
You have to listen to the customer's input. A liquid or html code will not be enough to do this. Unfortunately, you need a developer to write the javascript code for this.
Hi @porsche334,
Could you give me some info about your product, like its options and variants? And how do you handle its inventory? Also, if you could let me know how many products in your store need that custom text field and dropdown, I can give you some advice 🤗.
User | RANK |
---|---|
44 | |
42 | |
41 | |
28 | |
21 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023