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>