Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Modification of saving order from current order


Reply


2 Posts   1221 Views

Avatar
le_banana

Community Member, 21 Posts

7 August 2009 at 7:05pm

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.

Avatar
le_banana

Community Member, 21 Posts

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.