products_price vs final_price in orders_products

Ask the community for help and support.
Post Reply
Steek
Posts: 1
Joined: Mon Mar 01, 2021 2:51 pm

products_price vs final_price in orders_products

Post by Steek »

I have a problem with field ‘final_price’ in the table ’orders_products’.
There are 2 price fields in this table: products_price (shows the price as 4.1322) and final_price (showing the price as 4.000). Every decimal is set to 0.
Both fields have the same structure in de database, so I guess the problem is not in de database but somewhere in de code.
I made some minor (documented) core-code changes and changes in the database (extra fields in products and products_description).
I guess it has to do with a format of the ‘final_price’ value before it is updated in the database, but I just can’t find the place where this is done.
Can anyone point me in the right direction or give me a tip to fix this?
Thanks in advance.
Post Reply