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

  • Posts: 33
  • Thank you received: 0
5 years 11 months ago #290580

-- 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.

  • Posts: 33
  • Thank you received: 0
5 years 11 months ago #290595

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: 5 years 11 months ago by dylis.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
5 years 11 months ago #290602

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum