Using Dawn 12.0.0
For my product I have a variant picker for the photo amount, and under this I have text detailing the video length for each selection.
I’m wondering how I could link the two by adding a bold or underline effect to let’s say “2:30min” when “50” is selected.
(See image below for reference)
Thanks!
Possible but need customization.
If you are good with code please follow:
-
Assign variant Id using using data attribute or something else with each text.
-
Using JS detect hen variant change. When you there is a change add/remove class from the text.
-
Assign css to the class.
Sorry, I should have specified I have a very basic knowledge of code…
This is the variant picker code:
Select photo amount
50
Variant sold out or unavailable
100
Variant sold out or unavailable
150
Variant sold out or unavailable
200
Variant sold out or unavailable
And text code for times:
2:30 min | 4:50 min | 7 min | 9:20 min