Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: Hide categories for customer level

  1. #1
    doru is offline Senior Member
    Join Date
    Jan 2008
    Posts
    158

    Question Hide categories for customer level

    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

  2. #2
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    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

  3. #3
    doru is offline Senior Member
    Join Date
    Jan 2008
    Posts
    158

    Default

    Thanks, Joe

  4. #4
    TheAlien is offline Junior Member
    Join Date
    Jan 2008
    Posts
    3

    Default

    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!