/catalog/controller/common/header.php
$route = empty($this->request->get['route']) ? 'common/home' : $this->request->get['route'];
$css_file = str_replace('/', '_', $route) . '.css';
if(file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/css/' . $css_file)) {
$data['personal_styles'] = 'catalog/view/theme/' . $this->config->get('config_template'). '/css/' . $css_file;
}else{
$data['personal_styles'] = null;
}
/catalog/view/theme/default/template/common/header.tpl
<?php if ($data['personal_styles']) { ?>
<link href="<?php echo $data['personal_styles'] ?>" rel="stylesheet" media="all" type="text/css" />
<?php } ?>
Результат для стандартного темплейта будет таков:
catalog/view/theme/default/css/account_register.css
(страница регистрации)