by denverrusty » Sun Mar 30, 2008 4:03 pm
The initial product loop to get the first product graphic and link causes all of the products to be displayed. Can the display be suppressed?
Is there a way to get the graphic name only? I get an error if I use the following:
[-- VAR.medium_image_graphic IMAGE PRODUCT.graphic --]
If I remove the word IMAGE, I get the complete tag.
Also, for some reason, when trying to save the PRODUCT.MoreInfoURL, I get an invalid value comment instead of the field value.
My product template has the following code:
#<!-- ------------------------------------------------ -->#
#<!-- ------------------- Product -------------------- -->#
#<!-- ------------------------------------------------ -->#
[-- DEFINE PRODUCT --]
[-- IF VAR.get_first_product "true" --]
[-- VAR.medium_image_link PRODUCT.MoreInfoURL --]
[-- VAR.medium_image_file PRODUCT.Graphic --]
[-- VAR.get_first_product "false" --]
[-- ELSE --]
[-- VAR.define "product" --]
[-- INCLUDE elite_001_pr_vars.sst PROCESS --]
[-- INCLUDE gray_product_info_template.php PROCESS --]
[-- END_IF --]
[-- END_DEFINE PRODUCT --]
My page template has the following:
[-- VAR.get_first_product "true" --]
[-- VAR.medium_image_link "" --]
[-- VAR.medium_image_file "" --]
[-- LOOP PRODUCTS --]
[-- PRODUCT --]
[-- END_LOOP PRODUCTS --]
[-- VAR.get_first_product "false" --]
<!-- Products Row -->
<tr>
<td>
<div align="center">
<a id="mediumImageLink"
href="[-- VAR.medium_image_link --]">
<img id="mediumimage"
src="[-- VAR.medium_image_file --]"
alt="Large Product Image" />
</a>
</div>
</td>