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

Display several small images against a main product. Clicking these images swaps the main product image.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

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

Post 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" />';
Post Reply