打开购物车...每个类别都有不同的 CSS
我正在尝试在 opencart 购物车中加载每个类别完全不同的 CSS 文件。我尝试在 header.tpl 中使用 switch 语句,但它对我没有帮助。
基本上我只有四个类别,并且所有类别都有不同的 CSS。像类别有56个不同、57个不同、58个不同和59个不同。
我该怎么做呢?
I am trying to load completely different CSS file per category in opencart shopping cart. I have tried to use switch statement in header.tpl but it did not help me.
Basically I have only four categories and all will have different CSS. Like category 56 has different, 57 different, 58 different and 59 different.
How would I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过
category.php
控制器文件添加所需的 css 文件。文件:
查找:
添加在其前面:
You can add your desired css file, via
category.php
controller file.File:
Find:
Add before it: