如何覆盖 prestashop 核心文件 [英] How to override prestashop core files

查看:56
本文介绍了如何覆盖 prestashop 核心文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能否解释一下如何在 presatashop 中正确覆盖以下核心文件.Prestashop 1.7.1.2 只允许覆盖文件夹中的控制器、模态和 tpl 文件.我们不能以同样的方式覆盖 src 文件夹.

Can you please explain how to override following core files properly in presatashop. Prestashop 1.7.1.2 allowed only controllers, modal and tpl files in override folder. We can not override src folders in same way.

src/PrestaShopBundle/Controller/Admin/ProductController.php src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig

src/PrestaShopBundle/Controller/Admin/ProductController.php src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig

推荐答案

我认为在 Prestashop 1.7 中这是不可能的.查看他们的帖子 here :似乎他们希望你使用钩子,即扩展而不是覆盖......

I don't believe this is possible in Prestashop 1.7. See their post here : it seems like they want you to use hooks, ie extending not overriding...

这篇关于如何覆盖 prestashop 核心文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆