开发者

Drupal, Ubercart: how can I get the order printable version programmatically?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜