Zen Cart 自定义模板问题

发布于 2024-08-04 23:45:00 字数 264 浏览 5 评论 0原文

我被要求将 Zen Cart 网站上传到我的服务器,并且做得很好。

我现在遇到一个问题,客户已将其自定义模板上传到 include/templates 文件夹并在管理中选择它 - 但它仍然无法加载它。相反,它只是加载 template_default 样式。

我已经浏览了我能找到的所有文档,并执行了布局框控制器的“重置”,但似乎没有任何解决方案。

谁能告诉我是否有需要调整的文件或其他内容以确保它加载我的自定义样式?

干杯,

C.

I have been asked to upload a Zen Cart site to my servers and have done so fine.

I am getting a problem now with the fact that the client has uploaded his custom template into the includes/templates folder and selected it in the admin - but it still wont load it. instead it just loads the template_default style.

I am been through every document I can find and have performed the 'reset' of the Layout Boxes Controller, but nothing seems to resolve it.

Can anyone tell me if there's a file I need to tweak or something to make sure it loads my custom style?

Cheers,

C.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

终陌 2024-08-11 23:45:00

一种解决方案是用您的主题覆盖默认主题。我知道这不是您要问的,但是,它可以解决您的问题。

One solution would be to overwrite the default theme with yours. I know this is not what you are asking, however, it would solve your issue.

丿*梦醉红颜 2024-08-11 23:45:00

Zen Cart 模板可以非常简单,也可以非常复杂。因此安装它们可能很简单,也可能很复杂。这些文件可能位于错误的位置,或者未完全安装。很容易犯错误。以防万一,大纲如下:

1a。简单 - 将购物车模板文件复制到includes/templates/your_template_name/。

1b。复杂 - 将购物车模板文件夹复制到includes/。

2 进入管理>工具>选择模板并单击编辑。
选择您的模板名称。 (如果您没有看到 your_template_name,则说明出现了问题。)

3 许多模板在安装时边箱均处于关闭状态。转到管理>工具>布局框控制器并编辑侧框以将其打开。

解决问题的一个想法...
查看数据库template_select表。 template_dir 设置了什么?

Zen Cart templates can be really simple or really complex. So installing them can be easy or complicated. The files are probably in the wrong place, or not completely installed. It's easy to make a mistake. Just in case, here's the outline:

1a. Simple - Copy the cart template files to includes/templates/your_template_name/.

or

1b. complex - Copy the cart template folders to includes/.

2 Go to Admin > Tools > Template Selection and click Edit.
Select your_template_name. (If you don't see your_template_name something has gone wrong.)

3 Many templates install with the sideboxes turned off. Go to Admin > Tools > Layout Boxes Controller and edit the sideboxes to turn them on.

One idea for trouble-shooting ...
Look at the database template_select table. What template_dir is set?

兔小萌 2024-08-11 23:45:00

如果发生这种情况,请仔细检查文件includes/templates/YOUR_TEMPLATE/template_info.php。系统使用此文件来确定includes/templates 下的文件夹是否实际上是模板,如果没有此文件,则无法正常工作。设置此文件后,返回管理 -> 工具 -> 模板选择并尝试重新选择您的自定义模板。

If this is happening, double check the file includes/templates/YOUR_TEMPLATE/template_info.php. This file is used by the system to determine if a folder under includes/templates is actually a template, and things won't work without this file. Once you've set this file up, go back to admin->tools->template selection and try re-selecting your custom template.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文