开发者

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

开发者 https://www.devze.com 2023-01-07 19:10 出处:网络
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\"

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

精彩评论

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