Recreate Order Object from Transaction
I'm looking through the order transaction posts and trying to find a way to match the order to a pricing model type e.g. ad pack or membership pack.
On the order, under the Order Summery it displayed the type of order - in my case "Membership"
http://screencast.com/t/h5cyvXQ7ch
But I can't find out how CP figures this out - there's no info in the post or the post meta regarding the order type.
I did a var_dump on $item in order-single.php - class APP_Admin_Order_Summary_Table function row and it has 'type' => string 'membership-pack' (length=15) - that's what I need but I can't backtrace to where $item is set up.
http://screencast.com/t/i0qmbTcO
Anyone got any clues?
Thanks,
Wil