Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005
    Posts
    55
    Plugin Contributions
    0

    Default salemaker rounding up a third decimal point ?

    I have a product price of .64p (UK pounds), and have applied a discount with salemaker of 30% and I get the result of .45p when currencies are set to 2 decimal places

    The correct value should be .448p so an order of 100 should be £44.80p at the moment salemaker set at 2 decimal places is making the result is £45.00.

    I am thinking that Zen Cart would calculate a third decimal point and show 2 when set, but the only way I can get it to work is set 3 decimal points in currencies but then I get the correct result of £44.800 but cannot use this.

    Is there a way around this problem ? I really need the third decimal point calculation but somehow have got to stop Zen Cart from displaying that third point over £1.00. Something like show 3 decimal points under a £1.00 pound and only 2 when over a £1.00 Pound. Is this possible ??

    My currencies are set as follows and am using the latest version of Zen cart 1.3.0.2
    Title: GB Pound
    Code: GBP

    Symbol Left: £
    Symbol Right:

    Decimal Point: .
    Thousands Point: ,
    Decimal Places: 2

    Last Updated:
    Value: 1.00000000

    Example Output:
    £30.00 = £30.00

    I am only using this currency.

    Any help would be greatly appreciated as we hoped to go live with this soon.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: salemaker rounding up a third decimal point ?

    Currently, the only method available to use 3 decimals on the currency and that then shows as 3 decimals everywhere ... including the checkout ...

    This would take quite a bit of coding to allow for it to display one way in some places and manage the final calculations with 2 decimals for the checkout without producing errrors ...

    It can be done, but you are looking at quite a bit of custom work ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Price - Decimal Places / Rounding
    By Haggis in forum Basic Configuration
    Replies: 2
    Last Post: 30 Jun 2016, 10:35 PM
  2. ZenCart uses decimal point in gift voucher amount
    By kalastaja in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 1 Oct 2010, 08:27 AM
  3. need to get rid of decimal point or .00 in prices
    By paha in forum Customization from the Admin
    Replies: 2
    Last Post: 8 Jul 2008, 12:08 AM
  4. decimal point in pricing
    By rwoody in forum General Questions
    Replies: 0
    Last Post: 12 Mar 2007, 04:05 AM
  5. decimal point problem
    By rajeev83 in forum General Questions
    Replies: 4
    Last Post: 26 Sep 2006, 05:34 AM

Posting Permissions

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