2082 Posts in 1002 Topics by 452 members
|Go to End|
7 August 2009 at 7:05pm
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.
7 August 2009 at 10:43pm
Well, I've analized functions and tested some solution and I found the way to solve this problem, so this topic can be closed.
|Go to Top|