API function commerce_order_build_content was deprecated, but I couldn't find one that was supposed to replace that. How do I drupal_render() a loaded commerce order? As of now, I'm getting "call to undefined function" commerce_order_build_content


Use entity_view:

$build = entity_view('commerce_order', $order, 'full');
$markup = drupal_render($build);
| improve this answer | |
  • Very Helpful! I ended up using commerce_order_ui_order_view, which eventually calls entity_view. – rwaery Dec 19 '13 at 21:39

Your Answer

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

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