Get order total How do I get the total monetary value of an order into a shipping module? M Log in or register to post a comment. thewelshmike Posted: Mar 6, 2012 Comments Found it: $wrapper = thewelshmike on March 6, 2012 Found it: $wrapper = entity_metadata_wrapper('commerce_order', $order); $total = $wrapper->commerce_order_total->amount->value(); Log in or register to post a comment.
Found it: $wrapper = thewelshmike on March 6, 2012 Found it: $wrapper = entity_metadata_wrapper('commerce_order', $order); $total = $wrapper->commerce_order_total->amount->value(); Log in or register to post a comment.
Comments
Found it: $wrapper =
Found it:
$wrapper = entity_metadata_wrapper('commerce_order', $order);
$total = $wrapper->commerce_order_total->amount->value();