Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从 Ubecarts 订单中生成 pdf。我知道如何从我的浏览器访问订单的可打印版本:即“admin/store/orders/45/invoice/print”
但是,我想知道如何从 php 访问页面,也许使用 ubercart apis ?
我需要的是 node_view 的等价物,用于订单(不是节点)。
谢谢
我不确定它是否有实际的 API,但您可以使用uc_order_load_invoice,您需要的订单对象可以由该uc_order_load函数生成。
uc_order_load_invoice
uc_order_load