I'd like to display the table on the Orders page made by Drupal Commerce on another node along with other content. I believe this table is the commerce_user_orders view so I have tried using the following PHP code but all I get is a white screen when I try to view the node. Is there anyway I can overcome this?


$view = views_get_view('commerce_user_orders');
print views_build_view('embed', $view);
  • possible duplicate of How do I programmatically show a view block?
    – Anil Sagar
    Commented May 6, 2014 at 4:53
  • @AnilSagar I don't think it is. When I try the accepted solution, it doesn't appear to work. The node loads correctly but the view still isn't displayed.
    – Andy
    Commented May 6, 2014 at 6:34


Your Answer

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

Browse other questions tagged or ask your own question.