Hi,
Is there a way to hide a category in the left navigation unless you are logged in as a wholesaler (a certain customer level)?
Thanks
Hi,
Is there a way to hide a category in the left navigation unless you are logged in as a wholesaler (a certain customer level)?
Thanks
Change the skins/Skin_#/XMLPackages/rev.categories.xml.config file by adding the red-colored line of codes below to hide category for particulal Customer Level
<xsl:template match="/">
<xsl:variable name="CustomerLevel" select="3" />
<xsl:if test="/root/System/CustomerLevelID = $CustomerLevel"> <xsl:element name="ul">
<xsl:attribute name="class">
<![CDATA[tame]]>
</xsl:attribute>
<xsl:apply-templates select="/root/EntityHelpers/Category/Entity">
<xsl:with-param name="prefix" select="''"/>
</xsl:apply-templates>
</xsl:element>
</xsl:if>
</xsl:template>
The value of Customer Level varies depending on the value of the CustomerLevelID
Thanks, Joe
This hides all the categories, how do you go about hiding only one particular category (assigned to wholesale) leaving the rest visible for regular customers?
Thanks!