4
我想在opencart购物车中加载完全不同的CSS文件。我试图在header.tpl中使用switch语句,但它没有帮助我。Open cart ...不同的CSS每个类别
基本上我只有四个类别,所有将有不同的CSS。像56类有不同,57不同,58不同和59不同。
我该怎么做?
我想在opencart购物车中加载完全不同的CSS文件。我试图在header.tpl中使用switch语句,但它没有帮助我。Open cart ...不同的CSS每个类别
基本上我只有四个类别,所有将有不同的CSS。像56类有不同,57不同,58不同和59不同。
我该怎么做?
您可以通过category.php
控制器文件添加所需的css文件。
文件:
catalog/controller/product/category.php
查找:
$this->document->setTitle($category_info['meta_title']);
添加之前:
if($category_id == 20){
$this->document->addStyle('catalog/view/theme/mytheme/stylesheet/category20.css');
}