[Skip to main content](#vessel-content)

#   Strange rounding problem on product

##

- **[JIK](/forum/user/362-jik "View JIK's Profile")**
- [![JIK's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/362-jik "View JIK's Profile") Topic Author
- [ Offline](/forum/user/362-jik)

Less More

- Posts: 209
- Thank you received: 18
-
-

15 years 9 months ago [\#6770](#6770) by [JIK](/forum/user/362-jik "View JIK's Profile")  *[Strange rounding problem on product](/forum/4-how-to/6770-strange-rounding-problem-on-product#6770 "I have a product that sells for $280.00 including tax. In admin, when I enter this price into &quot;Price with tax&quot; field in the product setup, it calculates the pre-tax price to be $254.54545. Okay.  But when I look at the product's page in my store it shows the price as $280.01.  I have played with just about every variation of the pre-tax number but I can't get the product to show exactly $280.00.  In my category-products listing module it shows the price correctly as $280.00, but when added to the cart it lists the product at $280.01 in the cart.  How do I get rid of the 1 cent????  cheers!")* was created by *[JIK](/forum/user/362-jik "View JIK's Profile")*

I have a product that sells for $280.00 including tax. In admin, when I enter this price into "Price with tax" field in the product setup, it calculates the pre-tax price to be $254.54545. Okay.

But when I look at the product's page in my store it shows the price as $280.01.

I have played with just about every variation of the pre-tax number but I can't get the product to show exactly $280.00.

In my category-products listing module it shows the price correctly as $280.00, but when added to the cart it lists the product at $280.01 in the cart.

How do I get rid of the 1 cent????

cheers!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3NzAtc3RyYW5nZS1yb3VuZGluZy1wcm9ibGVtLW9uLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 9 months ago [\#6787](#6787) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Strange rounding problem on product](/forum/4-how-to/6770-strange-rounding-problem-on-product#6787 "I have a product that sells for $280.00 including tax. In admin, when I enter this price into &quot;Price with tax&quot; field in the product setup, it calculates the pre-tax price to be $254.54545. Okay.  But when I look at the product's page in my store it shows the price as $280.01.  I have played with just about every variation of the pre-tax number but I can't get the product to show exactly $280.00.  In my category-products listing module it shows the price correctly as $280.00, but when added to the cart it lists the product at $280.01 in the cart.  How do I get rid of the 1 cent????  cheers!")*

Hi,

There is currently a price calculation rounding issue in HikaShop. You can look at that thread for more information and how to go around the problem:
[ www.hikashop.com/en/support/forum/4-how-...culation-solved.html](http://www.hikashop.com/en/support/forum/4-how-to/5847-faulty-invoice-and-tax-calculation-solved.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3NzAtc3RyYW5nZS1yb3VuZGluZy1wcm9ibGVtLW9uLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[JIK](/forum/user/362-jik "View JIK's Profile")**
- [![JIK's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/362-jik "View JIK's Profile") Topic Author
- [ Offline](/forum/user/362-jik)

Less More

- Posts: 209
- Thank you received: 18
-
-

15 years 9 months ago [\#6865](#6865) by [JIK](/forum/user/362-jik "View JIK's Profile")  Replied by *[JIK](/forum/user/362-jik "View JIK's Profile")* on topic *[Re: Strange rounding problem on product](/forum/4-how-to/6770-strange-rounding-problem-on-product#6865 "I have a product that sells for $280.00 including tax. In admin, when I enter this price into &quot;Price with tax&quot; field in the product setup, it calculates the pre-tax price to be $254.54545. Okay.  But when I look at the product's page in my store it shows the price as $280.01.  I have played with just about every variation of the pre-tax number but I can't get the product to show exactly $280.00.  In my category-products listing module it shows the price correctly as $280.00, but when added to the cart it lists the product at $280.01 in the cart.  How do I get rid of the 1 cent????  cheers!")*

Ok, from that thread I made the changes to adminsitrator/components/com_hikashop/classes/currency.php and administrator/components/com_hikashop/controllers/product.php

but I am still getting a price of $280.01 on the product page. So, no change.

????

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3NzAtc3RyYW5nZS1yb3VuZGluZy1wcm9ibGVtLW9uLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 8 months ago [\#6880](#6880) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Strange rounding problem on product](/forum/4-how-to/6770-strange-rounding-problem-on-product#6880 "I have a product that sells for $280.00 including tax. In admin, when I enter this price into &quot;Price with tax&quot; field in the product setup, it calculates the pre-tax price to be $254.54545. Okay.  But when I look at the product's page in my store it shows the price as $280.01.  I have played with just about every variation of the pre-tax number but I can't get the product to show exactly $280.00.  In my category-products listing module it shows the price correctly as $280.00, but when added to the cart it lists the product at $280.01 in the cart.  How do I get rid of the 1 cent????  cheers!")*

please look in the file adminsitrator/components/com_hikashop/classes/currency.php in the function addTax near the end of the file. Could you try to remove the line:
$price-&gt;price_value = round($price-&gt;price_value,$round);

and see if the price is correct after that?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3NzAtc3RyYW5nZS1yb3VuZGluZy1wcm9ibGVtLW9uLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[JIK](/forum/user/362-jik "View JIK's Profile")**
- [![JIK's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/362-jik "View JIK's Profile") Topic Author
- [ Offline](/forum/user/362-jik)

Less More

- Posts: 209
- Thank you received: 18
-
-

15 years 8 months ago [\#6951](#6951) by [JIK](/forum/user/362-jik "View JIK's Profile")  Replied by *[JIK](/forum/user/362-jik "View JIK's Profile")* on topic *[Re: Strange rounding problem on product](/forum/4-how-to/6770-strange-rounding-problem-on-product#6951 "I have a product that sells for $280.00 including tax. In admin, when I enter this price into &quot;Price with tax&quot; field in the product setup, it calculates the pre-tax price to be $254.54545. Okay.  But when I look at the product's page in my store it shows the price as $280.01.  I have played with just about every variation of the pre-tax number but I can't get the product to show exactly $280.00.  In my category-products listing module it shows the price correctly as $280.00, but when added to the cart it lists the product at $280.01 in the cart.  How do I get rid of the 1 cent????  cheers!")*

Perfect, that fixed it! Thanks heaps!

cheers!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3NzAtc3RyYW5nZS1yb3VuZGluZy1wcm9ibGVtLW9uLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.116 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
