Jump to:

2082 Posts in 1002 Topics by 452 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, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1165 Views
  • le_banana
    Avatar
    Community Member
    21 Posts

    Modification of saving order from current order Link to this post

    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.

  • le_banana
    Avatar
    Community Member
    21 Posts

    Re: Modification of saving order from current order Link to this post

    Well, I've analized functions and tested some solution and I found the way to solve this problem, so this topic can be closed.

    1165 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.