cancel
Showing results for 
Search instead for 
Did you mean: 

Same code optional products display issues

Same code optional products display issues

We have an issue which we can not pin down the cause we have products that are on the same code but may vary in size or colour this may also result in different pricing to that effect. Initially before (upgrade from 1.9.1 to 1.9.2) on design product options showed via a drop down list with one image and now they display as a list for example: https://backup.bristolitcompany.com/index.php/s/T91nqX9zehCFF6V as a result the product image now appears as zoomed in and if there is more than one image they all display on the same page as well. 

 

As solutions we altered configurable.phtml to include: 

<select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?>" class="required-entry super-attribute-select">
<option><?php echo $this->__('Choose an Option...') ?></option>
</select>

Hoping that this would bring back the option drop down and it did not. We also included the fireEvent() in the script:

 

function fireEvent(element,event){

if (document.createEventObject){

// dispatch for IE

var evt = document.createEventObject();

return element.fireEvent('on'+event,evt)

}

else{

// dispatch for firefox + others

var evt = document.createEvent("HTMLEvents");

evt.initEvent(event, true, true ); // event type,bubbling,cancelable

return !element.dispatchEvent(evt);

}

}

Event.observe(window, 'load', function() {

spConfig.settings[0].selectedIndex = 1;

obj = spConfig.settings[0]; // this grabs the first select item

Event.observe(obj,'change',function(){});

fireEvent(obj,'change'); // this simulates selecting the first option, which triggers

spConfig.settings[1].selectedIndex = 1; // this selects the first option of the second attribute drop menu
});

But it has made no difference. So our question is does the fault lay with our Master database as some options display incorrectly as well e.g: https://backup.bristolitcompany.com/index.php/s/yp3tk1bF0sJRFjo does not even display options. Or are we doing something wrong somewhere else. Any guidance or advice will be greatly appreciated.