1999 Posts in 530 Topics by 433 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » Modification of saving order from current order
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1035 Views |
-
Modification of saving order from current order

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 VariationI'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.
-
Re: Modification of saving order from current order

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.
| 1035 Views | ||
|
Page:
1
|
Go to Top |

