编辑 Prestashop 主题和模块

发布于 2024-10-24 06:53:50 字数 1436 浏览 1 评论 0原文

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

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

发布评论

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

评论(6

玻璃人 2024-10-31 06:53:50

编辑模板后是否清除了缓存?
Prestashop使用缓存系统来加速商店加载,因此清空缓存目录以编译新模板

Did you clear the cache after editing your templates?
Prestashop uses caching system to speed up the shop loading, so empty the cache directory to compile the new templates

二货你真萌 2024-10-31 06:53:50

API 和文档是完全不同的东西。

该团队已更新文档(不再有 wiki),可以在 http://doc.prestashop.com/

您还应该查看论坛 (forum.prestashop.com),您可以在那里找到少量问题/答案。

API and documentations are a completely different things.

The team has updated the documentation (no more wiki) which can be found at http://doc.prestashop.com/

You should also check out the forum (forum.prestashop.com), you can find a low of questions / answers there.

关于从前 2024-10-31 06:53:50

不确定这个话题是否已经死了,但我们还是开始吧。确保您已加载正在处理的主题以启动。您可以在 Back Office > 下找到它。模块>主题。

正如之前的海报所提到的,前往后台>首选项>性能并启用“强制编译”并禁用“缓存”。

有一些可用的 API,但在我看来,从下到上开始,伙计,有合理的文档(再次,如上所述:http://doc.prestashop.com/) 至少会给你一些问题来开始提问。

Unsure if topic is dead, but here we go anyway. Make sure you have the theme you are working on loaded to start. You'll find this under Back Office > Modules > Themes.

As previous posters have mentioned head to Back Office > Preferences > Performance and enable "Force compile" and disable "cache".

There is a bit if an API available, but in my opinion start from the bottom up mate, there is reasonable documentation (again, as mentioned above: http://doc.prestashop.com/) available that will at least give you some questions to start asking.

压抑⊿情绪 2024-10-31 06:53:50

只是删除缓存对我来说不起作用。我必须删除 /themes//modules//目录。

Just deleting the cache not worked for me. I had to delete /themes/<current_theme>/modules/<edited_module>/ directory.

淡墨 2024-10-31 06:53:50

您可以禁用缓存高级参数>>表现。

you can disable cache Advanced Parameters >> Performance.

半衬遮猫 2024-10-31 06:53:50

如前所述,缓存是这里的一个问题,因此请务必清除它。您还可以按照您想要的方式完全构建模板系统,甚至在需要时编辑控制器。由于这是 MVC,因此在定制时必须考虑整个系统。

看一下 VQMOD,它允许您使用 xml 文件来动态编辑控制器以添加功能,即在类别页面上添加过滤器或产品翻转图像。 VQMOD 是完美的,因为这样核心系统仍然可以更新。

As mentioned the cache is an issue here so always clear it. Also you can completely structure the template system how you want it, even editing the controllers if need be. As this is MVC you have to think about the whole system when customising it.

Have a look into VQMOD, this allows you to have xml files that edit the controllers on the fly for added functinality i.e. added filters or product rollover images on the category page. VQMOD is perfect as then the core system can still be updated.

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