Hello
I need some help with saving orders to the database.
Let's say I have added this field :
'Price' => 'Currency'
to the Order table and I want to put there price, (in saving current order moment ) which belongs to Product Variation
I've tried to find connections between Orders and Product Variations, but I've only found connection between Orders and Products, so I've got problem, because every Product Variation from Product could have different price. So I want to do that in some other way :)
I know, I need to add some code in save_current_order() function in Order Class, bo I don't know how.
Could somebody tell me, what do i have to do, to take price from current order (which is Product Variation) and put it to the Order table?
Thanks for any help.