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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

OrderAttributes in ModelAdmin


Go to End


1024 Views

Avatar
Matze0681

Community Member, 25 Posts

9 August 2010 at 4:36pm

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!