I need to generate a pdf from Ubecarts orders. I know how to access to the printable versions of orders from my browser: i开发者_如何转开发.e. "admin/store/orders/45/invoice/print"
However, I was wondering how to access to the page from php, maybe using ubercart apis ?
What I need is the equivalent of node_view, for orders (which is not a node).
thanks
I'm not sure if there is an actual API for it, but you could use uc_order_load_invoice
, the order object you need can be generated by the uc_order_load
function.
精彩评论