I'm finally figuring out how to do shipping and would love to add the tracking number to the order status page for customers, however, there is no way to get the tracking number or list of tracking numbers. Seems like this would be a pretty straight forward implementation and the feature is fairly obvious, unless I missed it.
Should show up in the following class: http://lemonstandapp...ass_shop_order/
Thanks!
Jason
| Severity | 0 - None Assigned | Status | Unconfirmed |
| Version | - | Fixed in | - |
Page 1 of 1
Report ID #205: Need Tracking Number in Order Class
Page 1 of 1
Replies (1 - 1)
#2
Manca
Posted 30 April 2012 - 03:32 PM
Updating status to: Unconfirmed
Hi Jason,
It's missing from the documentation, but you can easily get a list of shipping codes with:
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:
where $shipping_method is a Shop_ShippingOption object.
We'll see about updating the documentation.
Thank you
Hi Jason,
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.
Thank you
Page 1 of 1

Help
Report