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

Thread: Price - Removing  

  1. #1
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default Price - Removing  

    I need to remove the first   from the sale price but I cant seem to find it anywhere?

    <span class="RegularPrice" >Regular Price:&nbsp;£10.79 (GBP)</span>
    <br />
    <span class="SalePrice" style="color: red">&nbsp;On Sale For:&nbsp;£10.00 (GBP)</span>
    Thanks
    Version: ML 8.0.1.2 and No Source Code.

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

    Default

    That's added in XSLTExtensionBase.GetVariantPrice, line 3957

  3. #3
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    I don't see that file, can you give me the path please.

    I don't have the source code btw!
    Version: ML 8.0.1.2 and No Source Code.

  4. #4
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    Quote Originally Posted by Fean0r View Post
    I need to remove the first &nbsp; from the sale price but I cant seem to find it anywhere?

    <span class="RegularPrice" >Regular Price:&nbsp;£10.79 (GBP)</span>
    <br />
    <span class="SalePrice" style="color: red">&nbsp;On Sale For:&nbsp;£10.00 (GBP)</span>
    Thanks
    You should be able to do this in the xmlpackage like this :-

    <xsl:value-of select="aspdnsf:StrReplace(aspdnsf:GetVariantPrice (VariantID, number(HidePriceUntilCart), Price, SalePrice, ExtendedPrice, Points, $pSalesPromptName, TaxClassID), '& #38;nbsp;On Sale For', 'On Sale For')" disable-output-escaping="yes" />
    You'll need to remove the space from the bold red bit - I had to put it in to get it to display properly here.


    TTFN

    BFG

  5. #5
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    Thanks BFG.

    I got the below error;

    Exception=The variable or parameter 'pSalesPromptName' is either not defined or it is out of scope.
    Version: ML 8.0.1.2 and No Source Code.

  6. #6
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    Thanks its working now, I was trying to use it on the featuredproduct page which is slightly different.
    Version: ML 8.0.1.2 and No Source Code.

  7. #7
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    This is for the featured products page (for anyone who finds this via a forum search).

    <xsl:value-of select="aspdnsf:StrReplace(aspdnsf:GetVariantPrice (VariantID, number(HidePriceUntilCart), Price, SalePrice, ExtendedPrice, Points, aspdnsf:GetMLValue(SalesPromptName), TaxClassID), '& #38;nbsp;On Sale For', 'On Sale For')" disable-output-escaping="yes" />
    Version: ML 8.0.1.2 and No Source Code.