I have Drupal commerce installed on a Drupal 7 website. I needed to create a view of users and wanted to display the product type they had purchased along with the user name in the View. However I am unable to create a relationship between the view and commerce order even though the module (commerce) has exposed it via hook_views_data

'relationship' => array(
  'title' => t('Owner'),
  'help' => t("Relate this order to its owner's user account"),
  'handler' => 'views_handler_relationship',
  'base' => 'users',
  'base field' => 'uid',
  'field' => 'uid',
  'label' => t('Order owner'),

Can anyone point out what is causing this relationship to not appear in the View add relationship foorm? Is it required to modify any additional configuration settings to bring up this view?

1 Answer 1


This was a false alarm. I was on a different branch with a single module missing. Enabling the module solved the problem.

  • Do you remember which module was missing ? Commented Sep 7, 2015 at 8:42

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.