Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rounding]

The tag has no usage guidance.

0
votes
0answers
11 views

Magento2 error in order calculation in admin

In the order totals area, Magento displaying the subtotal as 600.00 but when I am calculating Subtotal + Tax there is a small difference in the Grand total. ie; 545.46 + 54.55 = 600.01 Anybody ...
0
votes
2answers
44 views

[Solved]Magento 1.9 Override RoundPrice

Vers. Magento 1.9.3.9 I need to override thi function from Mage_Core_Model_Store public function roundPrice($price) { return round($price, 2); } So I created e new module: app/etc/modules/...
0
votes
0answers
45 views

Admin Product Price Rounding issue in Order Detail Item

I have Magento 1.9.3.2 and I have import order with my custom code and it's working fine only one issue is when I open order from admin All order item (Product) price is roundup like 8.51 will become ...
3
votes
1answer
451 views

Magento 2 - rounding issues with voucher discount applied

I am using PayPal Plus in my Magento 2.1.9 shop, which rejected payments of some orders of my clients due to rounding issues - OMG. eCommerce software with rounding issues - how great is that? Anyway....
2
votes
1answer
340 views

Rounding grand totals in Magento 2.1

Is it possible to round the grand totals of checkout-cart up/down? I need a "swedish rounding"? Problem is I have some customized products with cent-prices, so I cannot change these fixed prices.
6
votes
1answer
115 views

A strange question: price is $0.68000000000000005

My Magento2 is ver. 2.2.0-dev. When I set product's price to $0.68, after save the price will be $0.68000000000000005. But when the price is $0.5, it's ok.
1
vote
1answer
253 views

Magento1: Round the price of products in complete site? [closed]

I have 1200 products and all have prices like 12.99, 69.65, 55.24 etc. I want to round the price in my complete site everywhere so that functionality will not break and it will display rounded price ...
0
votes
1answer
635 views

Magento2 5 cent rounding

in magento 1.x for price roud i used extension https://github.com/openstream/Magento5CentRounding Does have somebody any solution for magento 2, or which functions i need rewrite ?
1
vote
2answers
725 views

How to Round off Discount price?

I copy these file from core to local folder from app/code/core/Mage/SalesRule/Model/Quote/Discount.php. **WHAT I NEED TO DO IS ROUND OFF DISCOUNT VALUE WHICH ALSO ROUND OFF TOTAL VALUE AS WELL ** I ...
1
vote
1answer
2k views

Rounding product price magento 2

Because of business logic I need to round all product prices to the nearest thousand. Example: If i have a price of $18600 i need to change the price to $19000. If i have $18400 i need to change it ...
0
votes
1answer
587 views

Round price before apply any catalog price rules to it

I've been struggling with a rounding issue lately. We have a product at 40.65. With a tax of 23% it gets up to 49.99 and rounding that up it goes to 50. Now i want to apply some price rules. A rule ...
1
vote
1answer
597 views

Magento 2: Round up foreign currency. How to do it?

In Magento 2, how do we show prices in other currencies than the base currency rounded up? For example, when foreign currencies are calculated using today's exchange rate, the price may be shown as $...
1
vote
2answers
1k views

Magento 1.9 Rounding Issue Tax Calculation

I have a product priced at £10.82 which gets 20% VAT added to it, leaving the price to be £12.98 This works fine when 1 product is in the cart but when more than 1 (e.g. 7) are added the calculation ...
0
votes
3answers
146 views

How to set zero after Decimal

How to set zero after Decimal <?php $layer = Mage::getSingleton('catalog/layer'); $category = Mage::getModel('catalog/category')->load($this->getCategoryId()); if ($category->getId()) { ...
0
votes
0answers
168 views

Tier pricing rounding - to show float number for SAVE 3.55%

There is problem with "You save %" on tier prices. It shows only integer and I many cases this looks strange like, without desired precision. Buy 4 for 29.69 each and save extra 2% Buy 6 for 29.39 ...
3
votes
1answer
2k views

1.9.2 Catalogue Price Rules rounding (when more then one rule applied with 'Stop further rules..')

In some cases of catalog price rules i have noticed, that the final price after rule being applied is rounded incorrectly. Example: Nett Price for one unit: 22.67 EUR Rule: 50% of original price ...
1
vote
0answers
521 views

Rounding Product Price triggers tax issue

It's not the duplicate of this qst. I am not trying to hide decimal, but trying to round the product price. But in same time not rounding the tax. So tax should be calculated having 2 decimal, but ...
0
votes
1answer
492 views

Round price after tax application

In my store, CE 1.9.2.2, I would like to round prices after tax application. Example: I have a product with a price 160.50 without taxes applied. For some customers the store applies a tax rule which ...
0
votes
1answer
2k views

How to round products price?

I have installed Price Rounding plugin to my Magento site. It works good, but I need to round price like that: 131.26 -> 131.25 The plugin gives me that: 131.26 -> 131.00 I know that it uses PHP ...
4
votes
2answers
997 views

' Tax Calculation Method Based On' - what is the preferred setting?

I have a store that is configured to store product prices as inclusive of tax. In the tax configuration, I have 'Tax Calculation Method Based On' set to Total. On some orders that have discounts, I ...
1
vote
1answer
87 views

PayPal Express rounding issue in Configurable Product (MCE 1.9.1.0 / 1.9.0.1)

PayPal Express creates a rounding issue error in Magento CE 1.9 Magento have confirmed this is a bug here: - but this bug was reported in April and still no confirmation from Magento if/when this ...
2
votes
2answers
3k views

Round Price to 4 decimal places

We have a client who is now providing prices to 4 decimal places. These are stored against the product and indexed correctly. When the product is added to the cart, the price in sales_flat_quote_item ...
2
votes
1answer
796 views

Prices in Magento are rounding up instead of down

We have a Magento store where the prices entered by admin are excluding VAT. VAT is added at a rate of 20% and should display on the product page, basket and checkout but for some crazy reason some ...
1
vote
3answers
783 views

Magento CE 1.9 rounding

Is there any plan to introduce a rounding function in Magento that caters for rounding to either the nearest 10 cents or, even better, nearest 5 cents? In Switzerland, all prices are inclusive of tax ...
2
votes
1answer
977 views

How To change TAX Round off value

I want to change my product tax value, it shows round off values. My Product rate is $49.95 and tax value is 10%. It shows $5.00 but I want it to show $4.99. I don't know where to change the round ...
1
vote
2answers
5k views

Rounding products prices in magento?

I create a new product and type price= $1.2222. But when I click Save and Continue edit the price = $1.22. I don't want to round the price, i want the price=$1.2222. How can I do that? Thank you!
0
votes
1answer
170 views

TAX Calculation on bundled additions

We have a Magento set at applying TAX per item - then totaling the cart value. This helps greatly with rounding issues. But This does not seem to be calculated this way with bundled product ...
0
votes
1answer
1k views

Rounding products prices in Magento 1.8 CE

I need to round the products prices with precision 2, but with the last decimal equal to 0 or 5. Example: 16,50€ 76,70€ 5,05€ Inserted prices have precision 4. 16,5963 need to be -> 16,60 16,...
1
vote
2answers
2k views

Full Tax Summary rounding issue in pdf invoice

For some reason our Magento rounds the individual tax rate's amount wrong in PDF invoice. In shopping cart and in order email the amount is right. Here is the wrong version: VAT 24%: 1.93 ALL TAXES: ...
0
votes
1answer
201 views

Changing rounding policy globally

I am using Magento CE 1.8.1.0. I have a requirement to use ceil on all prices/fees. I am also using product custom options. It seems that the rounding is not done in a single place. First I modify ...
0
votes
2answers
36 views

Rounding mistake after editing a product [duplicate]

if I want to add a new Product (sale price 39,99) I can set the price like this: 33,60504201680672 (without tax). The price in the shop is now shown correct: 39,99. If I edit then the product, the ...
2
votes
1answer
680 views

Rounding Error Problem

In Magento 1.7 there is a well known rounding error issue, which I thought I have solved using the fix suggested for example here However, ever since I have applied the fix, there is now a very ...
1
vote
1answer
2k views

Magento 1.8.1.0 and Pay Pal Error 10413 [closed]

After spending weeks on trying to fix this in Magento 1.7.1.0, I decided to update to 1.8.1.0 to finally get rid of this problem and guess what - nothing has changed! I am still getting the "The ...
4
votes
1answer
269 views

Layered navigation: intval on price filter

I can see $prices = array_map('floatval', $prices); in Mage_Catalog_Model_Layer_Filter_Price. I was wondering if I could intval without creating my own block, etc..?
14
votes
2answers
3k views

Why does Magento store a rounding delta when calculating taxes

In the model tax/Sales_Total_Quote_Tax, there is a method _deltaRound() that rounds a price. It adds a small delta, to stop nondeterministic behaviour when rounding 0.5. /** * Round price based on ...
2
votes
0answers
225 views

Applying discount brings grand total to negative 1 cent [duplicate]

We are seeing a problem where a user has placed an order that totals correctly, but when a discount is applied using a rule that can have a discount more than the total, the grand total goes to (-$0....
2
votes
2answers
6k views

Magento automatically round up product price based on applied VAT

I need to rounds up the including vat sell price to closest £0.99 ie. if sell price for an item including vat is £10.52 it rounds up the sell price inc vat to £10.99 . In other words, so sell price ...
1
vote
1answer
1k views

How to disable all price and transaction round off in magento

I am working on magento 1.7. all price and calculation in round off. i want to disable this feature but don't get it how to disable it please help me. please see following screenshot
8
votes
1answer
9k views

How do you fix rounding issues?

Annoying issue about rounding. I think community knows it. When you use price including tax, discounts and so on you will get 0.01 price difference. I found a solution to rewrite core class with ...
1
vote
2answers
986 views

Strange calculations with product price in order

We've come across a strange calculation error in our Magento setup. Magento 1.7.0.2 with PHP 5.4 In the above picture you see two products essentially the same. However the top product has a row ...
27
votes
4answers
8k views

What is the status of rounding issues in 1.7?

We are using Magento CE 1.7 and have various rounding issues. In various calculations there is a 0,01 EUR difference. The basic issue might be that the article-prices are incl. tax. Co-programmers ...