by ShopSite Lauren » Mon Apr 04, 2011 3:32 pm
You would add something similar to the following to your custom product template in the DEFINE MORE_INFO_PAGE section. To use the code below, you would need to setup the resized image feature in ShopSite so that the smallest images (resized image 3) and the medium size images (resized image 1) are being used. I would suggest that the medium size images be around 300 or 350px by 300 or 350px. Then I would suggest having the resized image 3 be around 80px or 100px by 80px or 100px. Last, you would go to Products > Edit Product Info, and you would enter the image file names (must be in the media folder for this example) in the product field 1, 2 and 3 fields. The example below displays 3 additional images, using the extra product fields 1 2 and 3.
In your custom template, replace the code that is similar to:
[-- IF PRODUCT.DisplayGraphic --]
[-- IF PRODUCT.MoreInformationGraphic --]
[-- PRODUCT.MoreInformationGraphic --]
[-- END_IF --]
[-- END_IF --]
replace the above code (or similar code) with the following:
[-- IF PRODUCT.MoreInformationGraphic --]
<table cellpadding="0" cellspacing="0" border="0" width="350">
<tr>
<td align="center" valign="middle" colspan="4"><img src="[-- OUTPUT_DIRECTORY_URL --]/media/ss_size1/[-- IMAGE PRODUCT.MoreInformationGraphic --]" name="prod_img" border="0"></td>
</tr>
<tr>
[-- IF PRODUCT.Field1 --]
<td><a href="http:#" onmouseover="document.prod_img.src='[-- OUTPUT_DIRECTORY_URL --]/media/ss_size1/[-- IMAGE PRODUCT.MoreInformationGraphic --]';" onClick="window.open('[-- OUTPUT_DIRECTORY_URL --]/media/[-- IMAGE PRODUCT.MoreInformationGraphic --]', 'image_window', 'width=600px,height=600px,resizable=yes,scrollbars=yes'); return false;"><img src="[-- OUTPUT_DIRECTORY_URL --]/media/ss_size3/[-- IMAGE PRODUCT.MoreInformationGraphic --]" border=0></a></td>
<td><a href="http:#" onmouseover="document.prod_img.src='[-- OUTPUT_DIRECTORY_URL --]/media/ss_size1/[-- PRODUCT.Field1 --]';" onClick="window.open('[-- OUTPUT_DIRECTORY_URL --]/media/[-- PRODUCT.Field1 --]', 'image_window', 'width=600px,height=600px,resizable=yes,scrollbars=yes'); return false;"><img src="[-- OUTPUT_DIRECTORY_URL --]/media/ss_size3/[-- PRODUCT.Field1 --]" border=0></a></td>
[-- IF PRODUCT.Field2 --]
<td><a href="http:#" onmouseover="document.prod_img.src='[-- OUTPUT_DIRECTORY_URL --]/media/ss_size1/[-- PRODUCT.Field2 --]';" onClick="window.open('[-- OUTPUT_DIRECTORY_URL --]/media/[-- PRODUCT.Field2 --]', 'image_window', 'width=600px,height=600px,resizable=yes,scrollbars=yes'); return false;"><img src="[-- OUTPUT_DIRECTORY_URL --]/media/ss_size3/[-- PRODUCT.Field2 --]" border=0></a></td>
[-- END_IF --]
[-- IF PRODUCT.Field3 --]
<td><a href="http:#" onmouseover="document.prod_img.src='[-- OUTPUT_DIRECTORY_URL --]/media/ss_size1/[-- PRODUCT.Field3 --]';" onClick="window.open('[-- OUTPUT_DIRECTORY_URL --]/media/[-- PRODUCT.Field3 --]', 'image_window', 'width=600px,height=600px,resizable=yes,scrollbars=yes'); return false;"><img src="[-- OUTPUT_DIRECTORY_URL --]/media/ss_size3/[-- PRODUCT.Field3 --]" border=0></a></td>
[-- END_IF --]
[-- END_IF --]
</tr>
</table>
[-- END_IF --]
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.