Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Have salemaker price rounded two decimals just as the displayed price?

    I use percentage when creating a sale.
    The total a lot of times is wrong by a few cents depending on how may items were ordered.

    For example, I have a products with a sale price displayed as $4.71, a customer ordered 7 and it shows like these:
    Code:
    Qty    Price(ex)  Price(inc)   Total(ex)   Total(inc)
    7       $4.71  	  $4.71 	 $32.99 	$32.97
    Subtotal: $32.99
    Based on the displayed price of $4.71, I expect the price to be just that $4.71 x 7 = $32.97, NOT $32.99

    The biggest issue this creates for me is that I cannot automatically import these transactions into QuickBooks because it is not in balance.

    Is there a setting I can change so that it calculates total just like the prices displayed? Or which is the file that controls the rounding for this so I can take a look and hopefully be able to change it.

    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: Have salemaker price rounded two decimals just as the displayed price?

    Never mind, I found it. It was just a simple edit to a functions file.

    If anybody needs this let me know and I'll post the solution later.

  3. #3
    Join Date
    Dec 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Have salemaker price rounded two decimals just as the displayed price?

    Hi there,

    Can you post the solution? I have the same issue to resolve ...much appreciated

    regards
    Gmac

  4. #4
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: Have salemaker price rounded two decimals just as the displayed price?

    You simply need to use the ROUND fuction in the includes/functions/functions_prices.php file to round to 2 decimals.
    Around line 73 for case 1: yuo should have this:

    PHP Code:
            case 1:
              
    $sale_product_price $product_price round((($product_price $sale->fields['sale_deduction_value']) / 100),2);
              
    $sale_special_price $tmp_special_price round((($tmp_special_price $sale->fields['sale_deduction_value']) / 100),2);
              break; 

  5. #5
    Join Date
    Dec 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Have salemaker price rounded two decimals just as the displayed price?

    That works great. Thank you so much!

    Gmac

  6. #6
    Join Date
    Dec 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: Have salemaker price rounded two decimals just as the displayed price?

    That worked great on regular items.

    I have some 'Priced by Attributes' products that it did not affect.
    I'm looking in the same file, but can't seem to find the solution.

  7. #7
    Join Date
    Dec 2013
    Location
    O
    Posts
    7
    Plugin Contributions
    0

    Default Re: Have salemaker price rounded two decimals just as the displayed price?

    tj1, I wish to THANK YOU for this thread and your post to the necessary changes. I have been battling this and looking for answers everywhere and am so happy to have found your response. It is the most precise and accurate I have found on this issue, and the fix appears to be working for me and my v1.5.1 Cart.

    You would think this would be fixed by now in all of the version upgrades since 2006.

  8. #8
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Have salemaker price rounded two decimals just as the displayed price?

    Noernberg, droland mentioned it's not working on products priced by attribute, are you able to test?
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

 

 

Similar Threads

  1. v154 Wish to have price in two places or Compact Description on Mobiles.
    By Bronco78th in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Apr 2016, 11:33 AM
  2. Setting the gross price to be rounded after taxing item??
    By tanyaleann in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 22 Sep 2008, 06:17 PM
  3. Replies: 3
    Last Post: 30 Aug 2008, 08:25 AM
  4. Normal Price Displayed and Charge to Customer Instead of Special Price
    By Stenrique in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 11 Jul 2006, 10:52 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR