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 theuc_order_loadfunction.