Page 1 of 1

Using with AUG "Automatically Rescale Your Product Images.."

Posted: Sat Aug 09, 2008 7:46 am
by norman
If you want Multi Product Images operating with the "Automatically Rescale Your Product Images to a Certain Size" tweak do the following:

NB: UNTESTED PATCH - MAY REQUIRE DEBUGGING!

In your Thumbnail Product Image layout, look for

Code: Select all

echo "<img src=\"$sThumbImageName\" width=\"$t_width\" height=\"$t_height\" border=\"0\"";
add the following below it (all on one line)

Code: Select all

echo ' id="im-<actinic:variable name="EncodedProductAnchor" encoding="perl" selectable="false" />"';
And in your Extra Image Table layout, look for

Code: Select all

$mainimagefilename = '<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />';
and replace with

Code: Select all

$mainimagefilename = 'Thumbnails/t_<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />';
Also look for the line

Code: Select all

$extraimages[0] = '<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />';
and replace with

Code: Select all

$extraimages[0] = 'Thumbnails/t_<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />';