OpusVista reacted to
Ketzer in [Contribution] Option Types v2
I too have faced this problem.
Has solved as follows:
Open includes/modules/option_types.php
Find
$Image_displayed = 0;
Below add
$Image_Dropdown[$product_info['products_id']]='';
$ImageText[$product_info['products_id']]='';
$First_ImageText[$product_info['products_id']]='';
Find
$ImageSelector_Name = $ProdOpt_Name . ': <script language="JavaScript" type="text/JavaScript">var ImageText'.$product_info['products_id'] . ' = new Array(' . $ImageText[$product_info['products_id']] . ')</script>';
$ImageSelector_Dropdown = '<select name="' . $Image_Dropdown_ID . '" onChange="document.getElementById(\'ImageSelect' . $product_info['products_id'] . '\').innerHTML=ImageText'.$product_info['products_id'].'[this.selectedIndex];">' . $Image_Dropdown[$product_info['products_id']] . '</select> ' . $ProdOpt_Comment;
Replace with
$ImageSelector_Name = $ProdOpt_Name . ': <script language="JavaScript" type="text/JavaScript">var ImageText'.$ProdOpt_ID . ' = new Array(' . $ImageText[$product_info['products_id']] . ')</script>';
$ImageSelector_Dropdown = '<select name="' . $Image_Dropdown_ID . '" onChange="document.getElementById(\'ImageSelect' . $ProdOpt_ID . '\').innerHTML=ImageText'.$ProdOpt_ID.'[this.selectedIndex];">' . $Image_Dropdown[$product_info['products_id']] . '</select> ' . $ProdOpt_Comment;
Find
<center><?php echo '<div class="main" id="ImageSelect' . $product_info['products_id'] . '">' . $First_ImageText[$product_info['products_id']] . '</div>';?></center>
Replace with
<center><?php echo '<div class="main" id="ImageSelect' . $ProdOpt_ID . '">' . $First_ImageText[$product_info['products_id']] . '</div>';?></center>
It works :)