I have de the
Code: Select all
public function __construct($registry) {
$this->config = $registry->get('config');
$this->db = $registry->get('db');
$this->request = $registry->get('request');
$this->session = $registry->get('session');
$this->load = $registry->get('load');
$this->detectEnviroment();
}
Code: Select all
$this->load->model($this->environment . '/shipping_list');
$this->load->model_checkout_shipping_list->updateStock($products);
In opencart 1.5.6 it was working.
I am using opencart 2.2 now.
Any suggestions on what I am doing wrong?