Developer forum

Forum » Development » Adding 2 variants to the hidden input in product.html

Adding 2 variants to the hidden input in product.html


Reply

Hi


 


Looking for at way to use 2 different variants on one page "product.html".


 


I have 2 different variants like. (just an example)


 


color: red


         blue


         green


 


size: L


        M


        S


 


I know I can use the variantCombo to use with the select, what I would like to do is to split the two up, but then how to put the info into the hidden variantID field created by the form ?


 


First select "color" and VO1 is put into "VariantID input" then select "size" and VO4 is put into "VariantID input" like this value="VO1.VO4" Like the VariantCombo does it


 


My javascript skill is not great at all :o)


 


Hope some one can help


 


Best Regards


 


Peter Klünder


Degn Grafik


Replies

 

You must be logged in to post in the forum