Developer forum

Forum » Ecommerce - Standard features » Loop ImageCategories not available inside variantcombinations loop

Loop ImageCategories not available inside variantcombinations loop

Martin Moen
Reply

According to the documantation, it should be possible to access the ImageCategories loop, while looping through variant combinations.
https://doc.dynamicweb.com/template-tags/ecommerce/product-catalog/product/variantcombinations#ImageCategories

But these are the only available loops when I use TemplateTags on the variant combination (see attachment).

Using DW 9.10.12.

Skjermbilde_2021-07-07_141552.png

Replies

 
Nicolai Pedersen
Reply

Depends...

  • If you are in a list of products, this will not render
  • If it is not an extended variant, this will not render
  • If it is not a master product, this will not render.

So on a product detauil page, rendering the master with extended variants, this runs.

 
Martin Moen
Reply

Understood, in this case I'm using family products, and and I'm at the master product in the family.
So, maybe it is not working on family products master, since the variants are not extended..?

 
Nicolai Pedersen
Reply

Should work. Is the category translated to the given language?

Can I see your template code.

 
Martin Moen
Reply

Yes, it is translated to all the languages,
Here is the code, and it is in Rapdio\eCom\Product\Blocks\Custom_Blocks.cshtml

Also tried to add it to the ProductFeed.cshtml but it was not available there either.

 

You must be logged in to post in the forum