Developer forum

Forum » Templates » Loop ProductCategories fields

Loop ProductCategories fields

Martin Grønbekk Moen
Reply

I have created a product and a product category (see screenshot).

And now I want to look through the fields of that product category.

 

I already have this code which is working.

<xsl:for-each select="loop[@name='ProductCategories']/item">
    <div class="row">
        <div class="large-4 columns">
            <xsl:value-of select="Ecom.Product.Category.ID" disable-output-escaping="yes"/>
        </div>
        <div class="large-8 columns">
            <xsl:value-of select="Ecom.Product.Category.Name" disable-output-escaping="yes"/>
        </div>
     </div>
</xsl:for-each>

And this loops through the categories, but how can I loop through the category fields?

Skjermbilde.PNG

Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Is this what you are looking for?

http://templates.dynamicweb-cms.com/eCommerce/Dynamicweb-eCommerce-template-tags/Product-Catalog/Product-detail/Loops/ProductCategories/Loops/ProductCategoryFields.aspx

Votes for this answer: 1
 
Martin Grønbekk Moen
Reply

Sure is! I looked all around for that one, but I must have missed it. Thanks :P

 

You must be logged in to post in the forum