Reputation: 1791
Now in the page views/cart/tmpl/order_done.php there is echo $this->html
. How can I echo order_number as single record? $this->order_number
and $order['details']['BT']->order_number
don't work. Thanks
Upvotes: 1
Views: 1030
Reputation: 396
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;
Upvotes: 2
Reputation: 1311
Can you just provide more information about the $order
data ? Is it an Array or Object Or combination of Both ? If Possible print the whole order data value here ?
Upvotes: 0