I am trying to customize additional page layouts and categories in Opencart 1.5.4.
I have a stage where, if I enter a route of a new category in the address bar, the new template will show how I want, but it seems that I can not register this route change in OC.
If I specify a change in the .htaccess file, the new template will load as expected, but I do not answer this question (although it works).
Addition to .htaccess (wrong method, I'm sure)
RewriteRule ^skis$ index.php?route=product/categories&path=1 [L,QSA]
I created two new files
/catalog/view/theme/default/template/product/categories.tpl /catalog/controller/product/categories.php
In / catalog / controller / product / categories.php, I changed the contents to reflect the new tpl file;
class Controllerproductcategories extends Controller {
.
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/categories.tpl')) { $this->template = $this->config->get('config_template') . '/template/product/categories.tpl'; } else { $this->template = 'default/template/product/categories.tpl'; }
So, in the summary
- If I specify rewriting in the .htaccess file, loading the layout if I do not.
- I added a new layout in OC and selected it for the category


Anyone have any ideas that I could try to get this to work correctly? I have a set of templates for creating products, categories and information pages, so I would like to do it right.
Tx in advance
Stu
source share