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.
在 admin/sales_order/view 我可以打印订单。现在我想将交易 ID 添加到 pdf 中。但是如何做到这一点?我知道它应该在 app/code/local/Mage/Sales/Model/Order/Pdf 中的某个地方
像这样的东西可以帮助..
$orderData = $order->getPayment()->getData(); $additional = $orderData['additional_information']['authorize_cards']; $keys = array_keys($additional); $transactionId = $additional[$keys[0]]['last_trans_id'];