Results 1 to 4 of 4

Thread: removing 'price' from variant price

  1. #1
    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
    Join Date
    Apr 2009
    Posts
    151

    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
    Join Date
    May 2012
    Posts
    5

    Default

    Excellent, thanks so much!

  4. #4
    Join Date
    May 2012
    Posts
    5

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •