-2

I have searched but only found details for opencart 1.5. I tried using

$this->load->model('account/order'); 

but throws an error because it only works for earlier versions of opencart. Any help appreciated.

Sumeet Gavhale
  • 800
  • 4
  • 13
  • 39
Lars
  • 11
  • 2

1 Answers1

0

Try this

$this->load->model('checkout/order');
$order_info=$this->model_checkout_order->getOrder($this->session->data['order_id']);
oMG
  • 323
  • 1
  • 2
  • 14
  • Thanks for replying however the error still shows: `Notice: Undefined property: Loader::$load in /... Fatal error: Call to a member function model() on a non-object in/..`. I think the problem is to do with `$this->load->model` in opencart 2.0 there must be a new way to call the object. Thanks for help. – Lars Feb 08 '15 at 19:21