Привествую камрады!
Возникла проблема, при создании нового макета для страницы товаров.
Имеем opencart 2.0.1
Что делаю: создал файл landing.php в /catalog/controler/product скопировал в него код c /catalog/controler/product/product.php
меняю название класса ControllerProductProduct на ControllerProductLanding меняю путь к шаблону
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/product.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/product/product.tpl', $data));
} else {
$this->response->setOutput($this->load->view('default/template/product/product.tpl', $data));
}
на
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/landing.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/product/landing.tpl', $data));
} else {
$this->response->setOutput($this->load->view('default/template/product/landing.tpl', $data));
}
создаю файл landing.tpl в /catalog/view/theme/default/template/product скопировал в него код с /catalog/view/theme/default/template/product/product.tpl Добавляю в админке новый макет Название Landing путь product/landing Определенному товару указываю созданный макет "Landing" Меняю что-либо в landing.tpl но изменений на странице нет.
Добавление любого модуля к данному макету работает (выводит в нужной позиции).
Делал по аналогии с манами к версии 1.5.x
записал все действия видяшка
Плюс в репу всем, кто даст дельный ответ. Спасибо
Что делаю не так?