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: Display Sale Price in Category View

  1. #1
    Bortiquai is offline Junior Member
    Join Date
    Aug 2009
    Posts
    22

    Default Display Sale Price in Category View

    Using ML/Express 8.0.1.2

    I have set a sale price on a few items. The sale price displays correctly in the product details page, but in the category or department view, it only shows the regular price. So the user has to click on the "details" button to see the sale price.

    Is there a way to show the sale price either in addition to (preferably) or instead of the sale price when in the category or department view?

    Thanks

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    What XML package are you using for that category? The entity.gridwithprices.xml.config XML package will show the sale price by default (if there is one).

    If this is a custom XML package, you can use aspdnsf:GetVariantPrice to get both the normal and sale price:

    Code:
    <xsl:value-of select="aspdnsf:GetVariantPrice(VariantID, HidePriceUntilCart, Price, SalePrice, ExtendedPrice, Points, $pSalesPromptName, TaxClassID)" disable-output-escaping="yes"/>
    ...or aspdnsf:GetMLValue to get just the sale price:

    Code:
    <xsl:value-of select="aspdnsf:GetMLValue(SalePrice)" disable-output-escaping="yes" />