Developer forum

Forum » Templates » Different categories of related products in eCommerce

Different categories of related products in eCommerce


Reply

I wish to use two different related product categories ("Cast" & "Similar performances") on the same webpage - that in itself is no problem to set up and not an issue here.

 

However, when it comes to showing the categories on the webpage I can only use one headline (for instance "Cast") as there are no template tags for showing the value of the related product category, nor are there any loop tags available in the Header section that would allow me to switch headlines.

 

Is there a workaround for this or does anyone have a bright idea?

 

David


Replies

 
Reply

Hi David

 

Try using this tag structure:

 

@LoopStart(ProductRelatedGroups)
 @Ecom:Product:RelatedGroup.Name
 @LoopStart(RelatedProducts)
  @Ecom:Product.Name
 @LoopEnd(RelatedProducts)
@LoopEnd(ProductRelatedGroups)

 

// Sebastian

 

 

You must be logged in to post in the forum