0

I want to create a list of users with their orders. I know I can create it with the Views module, but when I select user as view type, there is no relation I can use to get their orders.

Some users may not have any order. I want the list to include also those users without any order.

1
  • If the reverse relation is not available, then there is no simple way. it has to be coded in the module. You can try to find a patch in the module issue queue or file a feature request. Commented Dec 25, 2014 at 11:32

1 Answer 1

1

You can try to write a custom module that implements hook_views_data_alter() to programmatically define a relationship. See also the example code for hook_views_data().

1
  • tnx for your attention,I know that,I ask here maybe someone has better solution
    – Yuseferi
    Commented Dec 25, 2014 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.