2004 Posts in 533 Topics by 435 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 414 Views |
-
OrderAttributes in ModelAdmin

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 detailsID :
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!
| 414 Views | ||
|
Page:
1
|
Go to Top |

