Jump to:

2082 Posts in 1002 Topics by 452 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » OrderAttributes in ModelAdmin

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: 508 Views
  • Matze0681
    Avatar
    Community Member
    25 Posts

    OrderAttributes in ModelAdmin Link to this post

    hi,

    im trying to add the Orders of a Member to the Members Managed Model in Modeladmin through the relation : Order got one Member and Member got many Orders. So far so good; I can now access the Orders and Payment entries from the selected Member in the Member section.

    The problem is that i cant access the OrderAttributes which are related to the Order. I managed to display the correct summary_fields with a Decorator (OrderAttributeDecorator) , but i cant edit or view the entries in the tablelistfield cause it looks like the OrderAttributes dont got a ID. (the view and edit links are now generated without an itemid and causing an error)
    i got the following message if i try to debug the DataObjectSet with the OrderAttributes(shortend):
    ___________________________
    OrderItem class details

    ID :
    Quantity : 1
    Order ID : The order has not been saved yet, so there is no ID
    ___________________________

    The point is that is not true^^ the Order was definitly saved.

    thanks in advance for your help!

    508 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.