Name of product variant not showing in dropdown menu after selecting it

Tourist
24 0 2

Hello, 

 

I'm trying to create 3 product variants for each product in my store (ciaooo.today) where users can purchase a 1, 2 or 3 month's supply if the product. 

 

The dropdown menu works ok but I would like the exact name of the product variant to show after a user has selected it. 

 

Currently I have a dropdown menu with product variants: 

 

Screen Shot 2019-11-16 at 3.00.26 PM.png

 

After a user selects the variant, the menu is still just showing "Cure" whereas I would like the name of the exact variant to show up in the dropdown menu box. 

 

Any advice on how to set this up? 

 

Kind Regards,

 

Lisa

0 Likes
Shopify Expert
2474 415 522

Hi @Lisa_Dudley 

As i can see its custom created drop down box using may be UL and LI.

For that you have to make Js code to change selected variants as title in this custom box.

You can find variant callback function in Asst->theme.js fle find bellow:

if(variants)

and add you code in this function.

Let me know i you need help 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes