Hi,
I had the problem with attributes replaces main image not working with dpu. I came up with a fix which is below which should work for you, let me know if it does.
Place the code within your tpl_modules_attributes.php and change attrib-2 with the attribute of you option(go into view source to find it). within the code that produces the dropdown on your page you will see code similar to 'getattribimage("id[2]",547,500, this.value,2);' replace it with what you see in the same format, this will ensure the image size remains the same.
<script type="text/javascript">
function afunc(){
getattribimage("id[2]",547,500, this.value,2);
}
var
el=document.getElementById("attrib-2");
try{
el.addEventListener("change",afunc, false);
}
catch(e){
try{
el.attachEvent("onchange",afunc);
}
catch(e){
el.onchange=afunc;
}
}
</script>
Let me know if you have any problems with this, if you have more than one attribute that will replace the attribute image I can help you out with some extra code
Bookmarks