Updated 10/06/03 to use built in path variable. Updated 25/01/03 to allow for "/" in product references and leading "-" prefixes for duplicated products. Assuming you have some product images whose filenames are related to your product references then it is possible to display these images with the search results. The images can be in either jpg or gif format but the extensions must lower case for the code to work. These patches can be implemented with just a single line of perl but have grown rather large due to the addition of the option of scaling down the image sizes. As the character "/" may occur in product references but will be a problem on the web the "/" character will be replaced by "-" so the product reference "XYZ/123" should have XYZ-123.jpg or XYZ-123.gif as its image name. To allow you to put a product in more than one section (where it must have a different product reference) you can use one or more "-" as a prefix to the product reference and all these will be stripped out when checking for the image. E.g. product "XYZ-123" can be also called "-XYZ-123" or "--XYZ-123", etc but all of them will use the image named "XYZ-123.jpg". In the patches that follow there are 4 user modifiable lines (starting at "my $NorcatImagePrefix") 1) If you have a prefix or postfix (2) to your image file names (i.e. bits that aren't part of the product reference) then add that text to $NorcatImagePrefix and $NorcatImageSuffix. 3) You can also amend the code that starts and ends (4) the cart image. Patching instructions:- ******************************* In Act_ResultsTemplate.html Change the line . to read . You can move the fragment around (within the block) to suit your requirements. In SearchScript.pl (V5 & V6 versions) locate the line (there should be only one instance) $ACTINIC::B2B->SetXML('S_ITEM', ($nCount + 1)); and INSERT the following code immediately above it:- ########## START of ALL PATCHING - SEARCH RESULTS - IMAGE WITHOUT SCALING V1.1 ######################### # SearchScript.pl (V5 & V6 versions) patch my $NorcatRef = $$rarrResults[$nCount]; # Our product reference SearchScript.pl version $NorcatRef =~ s/^-+//; # strip any leading "-" characters $NorcatRef =~ s/\//-/g; # (V11) replace "/" with"-" # author Norman Rouxel www.drillpine.biz (V11) # user modifiable variables my $NorcatImagePrefix = ''; # optional text that prefixes product ref in image filenames my $NorcatImageSuffix = '-small'; # optional text that follows product ref in image filenames my $NorcatImageStart = ' somewhere in Act_ResultsTemplate.html) $ACTINIC::B2B->SetXML('S_IMAGE', $NorcatImage); ########## END of ALL PATCHING - SEARCH RESULTS - IMAGE WITHOUT SCALING V1.1 ##########################