Hi
For my related products I have a heading that I don't want displayed if there is no related items for a given product. How should my "IF" look.
I have tried the following without success.
<!--@If Defined(ProductRelatedGroups)-->
<h2>Related Products</h2>
<ul>
<!--@LoopStart(ProductRelatedGroups)-->
<!--@LoopStart(RelatedProducts)-->
<li>
<a href="<!--@Ecom:Product.Link.Clean-->"><!--@Ecom:Product.Name--></a>
</li>
<!--@LoopEnd(RelatedProducts)-->
<!--@LoopEnd(ProductRelatedGroups)-->
</ul>
<!--@EndIf(ProductRelatedGroups)-->
Developer forum
If Defined - related products
Replies
You must be logged in to post in the forum