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

Thread: Discount Table 2.5000

  1. #1
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Question Discount Table 2.5000

    With my discounts table I only want to show the one space after the decimal i.e. 2.5% discount than show 2.5000% discount.

    Any ideas how to achieve this?
    Thanks in advance.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

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

    Default

    I'd also be interested to know if this is possible. It's somewhat awkward having all quantity discounts listed at 10.0000%.

    I understand that it's possible a store owner would want to offer a 0.0001% discount (I guess?), but aesthetically it looks bad.

  3. #3
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    There isn't any appconfig that could change that, yes. Do you have the source? Go to your AppLogic.cs, locate the method GetQuantityDiscountDisplayTable, and you can see somewhere along line 5633 how it was displayed.

  4. #4
    rybrown18 is offline Junior Member
    Join Date
    Feb 2009
    Posts
    18

    Default No Source Code

    If you don't have the source code is there any other other way to format or change the display of this table.

  5. #5
    tito is offline Senior Member
    Join Date
    Sep 2005
    Posts
    213

    Default

    has this change since 03-17-2010
    I would really like to change this 20.0000% thing.

    do we still need source?
    Gordon

    8.1.1

  6. #6
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    You can always use aspdnsf:StrReplace(source,stringtofind,replacewith )
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!

  7. #7
    tito is offline Senior Member
    Join Date
    Sep 2005
    Posts
    213

    Default

    Thanks for this ..
    Can you please explain a little further.. how can i access this ..
    Thank you very much for your help
    g
    Gordon

    8.1.1

  8. #8
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    You need to use this in your xml.config file which displays your product page. You probably have a line that says something like this:

    Code:
    <xsl:value-of select="aspdnsf:ShowQuantityDiscountTable(ProductID)" disable-output-escaping="yes"/>
    Which you need to replace with this:

    Code:
    <xsl:value-of select="aspdnsf:StrReplace(aspdnsf:ShowQuantityDiscountTable(ProductID),'000%','%')" disable-output-escaping="yes"/>
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!

  9. #9
    tito is offline Senior Member
    Join Date
    Sep 2005
    Posts
    213

    Default

    Wow.. Thats amazing .. How do you guys come up with such stuff.. BRILLIANT
    THANK YOU VERY VERY MUCH esedirect
    Gordon

    8.1.1