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

Thread: How to display product price correctly?

  1. #1
    steven is offline Junior Member
    Join Date
    Jan 2011
    Posts
    14

    Default How to display product price correctly?

    I need to show the price outside of the variant dropdown. I have added the following code which shows the price as: "Price: 10.0100"

    <div>
    Price:
    <xsl:value-of select="/root/ProductVariants/Variant/Price"/>
    </div>

    I need the price to show as: "Price: $10.01"

  2. #2
    steven is offline Junior Member
    Join Date
    Jan 2011
    Posts
    14

    Default

    In case any one else needs to display price, here is the solution that I found in the forums:

    $<xsl:value-of select="format-number(Price,'####0.00')"/>

    I found this solution here:
    http://forums.aspdotnetstorefront.co...splay-question

  3. #3
    hotdog is offline Member
    Join Date
    Jun 2011
    Location
    Daytona Beach, FL
    Posts
    46

    Default Cool!

    Thanks! I was looking for that exact code. Many thanks again...