i want to use variant selector as radio button on debut theme

Highlighted
Shopify Expert
43 1 4

I am trying to implement https://shopify.github.io/liquid-code-examples/example/product-variant-selector
product variant selector as a radio but it not working in the debut theme 
only first variant added to cart  but I selected other variant option 

0 Likes
Highlighted
Shopify Partner
100 16 30

Hi,

Whenever a particular radio button is clicked, you have to select the appropriate variant option in the original 'select', that's the big picture.

Themes already have scripts that already all these selection . You first need to look what the original scripts is doing and then hook up your own custom codes to work with it.

 

0 Likes
Highlighted
Shopify Expert
43 1 4

@Jayvin thanks for your valuable answer. 

you can check your debut theme code with my code reference that was good for you what was working or not.

i know the selector not working for the radio button I already try some solution from community answer but that was not working. if you can provide the working code snippet that was great for the community 

0 Likes