Virtuemart:在 order_done 页面回显 order_number

Virtuemart: Echo order_number on order_done page

现在views/cart/tmpl/order_done.php页面中有echo $this->html。如何将 order_number 回显为单个记录? $this->order_number$order['details']['BT']->order_number 不起作用。谢谢

您能否提供有关 $order 数据的更多信息?它是数组还是对象还是两者的组合?如果可能,请在此处打印整个订单数据值?

order_done.php:

require_once(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'orders.php');
$order = VirtueMartModelOrders::getOrder($this->cart->virtuemart_order_id);
echo $order['details']['BT']->order_number;