|Severity||0 - None Assigned||Status||Unconfirmed|
Report ID #205: Need Tracking Number in Order Class
Posted 28 April 2012 - 09:30 PM
Should show up in the following class: http://lemonstandapp...ass_shop_order/
Replies (1 - 1)
Posted 30 April 2012 - 03:32 PM
It's missing from the documentation, but you can easily get a list of shipping codes with:
$codes = Shop_OrderTrackingCode::find_by_order($order);
where the $order variable is an object of the Shop_Order class.
If you're looking for tracking numbers for a specific shipping method, you can use:
$codes = Shop_OrderTrackingCode::find_by_order_and_method($order, $shipping_method);
where $shipping_method is a Shop_ShippingOption object.
We'll see about updating the documentation.