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

Thread: removing 'price' from variant price

  1. #1
    upupdowndown is offline Junior Member
    Join Date
    May 2012
    Posts
    5

    Default removing 'price' from variant price

    I'd like to only show the price of an item in $, and not have "price" preceding it. I'm not having any luck finding the file or string to modify.

    Essentially I want this: $499 not this: Price $499

    I'm using ML8, thanks!

  2. #2
    donttryathome is offline Senior Member
    Join Date
    Apr 2009
    Posts
    171

    Default

    This can be done using the StrReplace function inside your XML package.

    Find this line in your XML package:
    Code:
    <xsl:value-of select="aspdnsf:GetVariantPrice(VariantID, number(HidePriceUntilCart), Price, SalePrice, ExtendedPrice, Points, $pSalesPromptName, TaxClassID)" disable-output-escaping="yes" />
    Replace it with this:
    Code:
    <xsl:value-of select="aspdnsf:StrReplace(aspdnsf:GetVariantPrice(VariantID, number(HidePriceUntilCart), Price, SalePrice, ExtendedPrice, Points, $pSalesPromptName, TaxClassID), 'Price:', '')" disable-output-escaping="yes" />
    That will replace "Price: $X.XX" with "$X.XX"
    Running: AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  3. #3
    upupdowndown is offline Junior Member
    Join Date
    May 2012
    Posts
    5

    Default

    Excellent, thanks so much!

  4. #4
    upupdowndown is offline Junior Member
    Join Date
    May 2012
    Posts
    5

    Default

    How about replacing multiple strings? ie; 'On Sale Now:' etc.. as well?