News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Personal page "Thank you for the order"

Started by b.carotin, March 19, 2015, 12:10:16 PM

Previous topic - Next topic

b.carotin

Hello, All!
Before version vm 2.6 I used the code <?php require_once(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'orders.php');$order = VirtueMartModelOrders::getOrder($this->cart->virtuemart_order_id);?> for showing on the page components/ com_ virtuemart/ views/ cart/ tmpl/ order_ done. php the data I needed. After renewal the version the code doesn't work properly. Could you, please, advise how could I fix the code to make it functioning again?
Thank you.

PS For example:
<?php echo $this->html;
require_once(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'orders.php');$order = VirtueMartModelOrders::getOrder($this->cart->virtuemart_order_id);?>
<?php echo $order['details']['ST']->order_number ?><?php echo $order['details']['ST']->created_on ?>