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: How to Make Change to Order Receipt - Show Sale Price, not Regular Price

  1. #1
    knivestown is offline Junior Member
    Join Date
    Jun 2011
    Posts
    19

    Question How to Make Change to Order Receipt - Show Sale Price, not Regular Price

    I want the receipt to show the Sale Price not the Regular Price under the Price heading. How can I make this change? Thank you for your help!

  2. #2
    GoVedia is offline Member
    Join Date
    Oct 2012
    Location
    Orange, CA
    Posts
    98

    Default Sale Price

    Those changes can be made by modifying your receipt XML Package. By default, the cart uses "notification.receipt.xml.config". To be sure what XML Package you are using, check the value of your "XmlPackage.OrderReceipt" AppConfig.

    Here are general guidelines, on how you would proceed to make the changes to a stock receipt XML Package:
    1) Search for the following:
    Code:
    <!-- Ext Price Column -->
    <td width="20%" style="font-weight:bold; text-align:right; padding-right:1em">
        <xsl:value-of select="receipt:FormatCurrencyWithoutCurrencyCode(DisplayExtPrice)" disable-output-escaping="yes" />
    
            <xsl:if test="$applyVat = true()">
                <div style="font-weight:normal">
                    <xsl:value-of select="receipt:FormatCurrencyWithoutCurrencyCode(ExtVatAmount)" disable-output-escaping="yes" />
                </div>
            </xsl:if>
    </td>
    The code within the td tag, is responsible for displaying the sale price of each respective item on your receipt.

    2) Scroll up until you find the following:
    Code:
    <!-- Price Column -->
    This is where your regular price is being displayed, and where you will want to insert the sale price code, with some alterations. You will essentially want to insert logic that will only insert a sale price, if it exists. Otherwise, it should return the regular price.

    3) Since you will be displaying the sale price + regular price in a single column, you may need to alter or remove some other columns. If so, you will also want to look at the GenerateLineItemHeaders template - which is responsible for column headers. Remember to keep track of your rows + columns, or the table on your receipt may not generate as you expected.

    Let us know if you have any questions.

    Robert
    Robert Kanaan
    AspDotNetStorefront Development Partner
    robert@GoVedia.com
    408-758-8845

    GoVedia
    http://GoVedia.com
    Approved AspDotNetStorefront Development Partner
    AspDotNetStorefront Recommended Reseller