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);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.