LemonStand Forum: Need Tracking Number in Order Class - LemonStand Forum

Jump to content

Severity 0 - None Assigned Status Unconfirmed
Version - Fixed in -

Page 1 of 1
  • Cannot start a new Issue
  • You cannot reply to this issue

Report ID #205: Need Tracking Number in Order Class

#1 User is offline  
jason 

  • Member
  • Group: Members
  • Posts: 14
  • Joined: 01-June 10

Posted 28 April 2012 - 09:30 PM

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


Page 1 of 1  
  • Cannot start a new Issue
  • You cannot reply to this issue

Replies (1 - 1)

#2 User is offline  
Manca 

  • Developer
  • Group: +Administrators
  • Posts: 252
  • Joined: 02-September 11

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:
$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
  • Cannot start a new Issue
  • You cannot reply to this issue

0 User(s) are reading this issue
0 Guests and 0 Anonymous Users