Page 1 of 1

DCI-V6 Disable swapping of main product image.

Posted: Wed Jun 18, 2014 1:15 pm
by norman
To Disable swapping of main product image but still allow an Attribute Image to swap, edit file dynamicchoiceimagessupportv6.js (in your Site folder).
Look for the line:

Code: Select all

function dci_imageswitch(swapimage, newimage){
Immediately below it add a new line:

Code: Select all

	if ( swapimage.attr('id').indexOf('_') == -1 ) return;
This will allow Dynamic Choice Images to be used alongside Magic Zoom Plus or Multi Product Images without interfering with these other add-on's manipulation of the product image.