Skip to main content

Prices are differents on Cart (corrects) than on Order, Invoice and Mails

8 years 7 months ago #290580 by dylis
-- HikaShop version -- : 3.4.0 business
-- Joomla version -- : 3.8.6
-- PHP version -- : 7.1.14
-- Browser(s) name and version -- : Firefox 59.0.2 (64 bits)

This message contains confidential information


Hi,

Im facing a problem with prices in orders (from order history front end and backend), emails and invoices,

for some reason prices seems to be rounded one more time after the user validate his cart (prices are ok in cart)

some screenshot joined so you understand the problem :

- prices in cart (all ok)
- prices in order, mails and invoice (TVA and TTC are ok, item price and subtotal are wrong)

you can reproduce this exemple (order n°CDE-91-31/03/18) with product Enveloppes Office/114x162 / 80g / no options / qty 8500

Thanks

Please Log in or Create an account to join the conversation.

8 years 7 months ago - 8 years 7 months ago #290595 by dylis
Hi,

I found the origine of the problem, the mysql table structure was limited to 5 decimals where I needed 6,

so, I altered the table structure with decimal (16,6) for column order_product_price in hikashop_order_product table and for column currency_rate in table hikashop_currency (not sure I need to alter this one?), and everything works fine.

But, are those table structure going to change with next hikashop updates ?

Thanks
Last edit: 8 years 7 months ago by dylis.

Please Log in or Create an account to join the conversation.

8 years 7 months ago #290602 by Jerome
Hello,

HikaShop updates can add new columns but generally do not modify the structure of existing columns.
So the hikashop_price and the hikashop_order_product tables won't be impacted with future HikaShop updates. And if one day we want to change the structure of these price columns, it will only to make them more accurate. But in 8 years it was fine with 16.5 for the biggest majority our users (but you're not the only one who changed that floating precision).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum