Need some help with logic... sometimes, I have <g
rice>875.4024.32</g
rice> as a result, which 875.40 is the qty * the price and 24.32 is the sales price. What am I doing that shows both the total price and price? Thx in advance.
Code:
<g:price>
<xsl:if test="minimumquantity > 0">
<xsl:choose>
<xsl:when test="number(saleprice)=0">
<xsl:value-of select="format-number(price * minimumquantity, '###0.00')" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="format-number(saleprice * minimumquantity, '###0.00')" />
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="minimumquantity != 0">
<xsl:choose>
<xsl:when test="number(saleprice)=0">
<xsl:value-of select="format-number(price, '###0.00')" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="format-number(saleprice, '###0.00')" />
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</g:price>