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 2 of 2

Thread: Customer Level Specific Pricing

  1. #1
    knottydreadlock is offline Junior Member
    Join Date
    Mar 2007
    Posts
    21

    Default Customer Level Specific Pricing

    Hello. I have a site in which I will have Customer Specific Pricing.

    In the event that an extended price is defined for the customer I want to display that extended price, in the event that it is not then I want to display the regular price.

    Further, some customers will have their own customer level so that I can limit certain customized products only for their viewing.

    The following code seems to accomplish what I am looking to do in terms of displaying the price. Please let me know if you can offer any criticism (possible breaks of this code) and or improvements.

    Code:
    													<xsl:choose>
    														<xsl:when test="(/root/Runtime/CustomerLevelID)=0">
    																<xsl:value-of select="aspdnsf:FormatCurrency(Price,LocaleSetting)"/>
    														</xsl:when>
    														<xsl:otherwise>
    															<xsl:choose>
    																<xsl:when test="ExtendedPrice = 0">
    																	<xsl:value-of select="aspdnsf:FormatCurrency(Price,LocaleSetting)"/>
    																</xsl:when>
    																<xsl:otherwise>
    																	<xsl:value-of select="aspdnsf:FormatCurrency(ExtendedPrice,LocaleSetting)"/>
    																</xsl:otherwise>
    															</xsl:choose>
    														</xsl:otherwise>
    													</xsl:choose>

  2. #2
    Michelle Overstreet is offline Junior Member
    Join Date
    Oct 2011
    Posts
    1

    Default Customer Level Pricing

    I would like to accomplish the exact same thing. Where exactly did you change/add this code?