Developer forum

Forum » Ecommerce - Standard features » Display full product catalog on page

Display full product catalog on page

Anders Ebdrup
Reply

Hello

Do someone have experience with printing the entire product catalog on a page? (without having to select the desired groups to be printed as it is an integrated shop)

I have tried to create a page with a "Navigationtag" (products) and under "Navigation" I have chosen "eCom groups" and selected the desired shop, but nothing is printed on the page...

 

<ul title="Main navigation" class="dwnavigation nav" id="product" settings="parenttag:products;startlevel:1;endlevel:99;template:LIClean.xslt;expandmode:All;">

      <li><a href="#" class="first">Home</a></li>

      <li class="current_page_item"><a href="#">Blog</a></li>

      <li><a href="#">Contact</a></li>

</ul>

ecom-navigation.png

Replies

 
Nicolai Høeg Pedersen
Reply

Try setting a product page, and also set the language under the website settings. Also check that the Groups have "Show in menu" set on their properties.

 

Otherwise I think I need a URL to see what is wrong.

 

BR Nicolai

 
Anders Ebdrup
Reply

For anyone with the same problem, this can be solved by sending in a custom setting (e.g. "product-nav") and use this to find the catalog inside the xslt:

  <xsl:template match="/NavigationTree">

    <xsl:variable name="productNav" select="//Settings/LayoutNavigationSettings/@product-nav" />

     <xsl:if test="count(//Page[@NavigationTag=$productNav]/Page) &gt; 0">

      <ul>

        <xsl:apply-templates select="Page[@NavigationTag=$productNav]/Page">

          <xsl:with-param name="depth" select="1"/>

        </xsl:apply-templates>

      </ul>

    </xsl:if>

   </xsl:template>

...

 

 

 

 

You must be logged in to post in the forum