Posts

Showing posts with the label opencart category
before opencart 2.2 version if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category_' . $category_id . '.tpl')) { $this->template = $this->config->get('config_template') . '/template/product/category_' . $category_id . '.tpl'; } elseif (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) { $this->template = $this->config->get('config_template') . '/template/product/category.tpl'; } else { $this->template = 'default/template/product/category.tpl'; } opencart 2.2 version onwards Since Opencart changed its method from 2.2 that code doesn't work anymore, you can modify it like this: First we must know which theme is active, store its name in a variable $config_theme = $this->config->get('config_theme') == 'theme_default' ? 'd...