[英]PrestaShop 1.7 override src file in own module
I create own module and I want to override some file so in views folder I create folder PrestaShop and in it I add complete path to file like Admin/Catalog/Product/List/somefile.php
and this override works, but when I want override file from src
folder there is nothing happend. 我创建了自己的模块,我想覆盖一些文件,因此在views文件夹中创建了PrestaShop文件夹,并在其中添加了
Admin/Catalog/Product/List/somefile.php
类的文件的完整路径,这种覆盖有效,但是当我想要覆盖时src
文件夹中的文件没有任何反应。 For example I want to override file public_html/src/Adapter/Product/PriceCalculator.php
so in my module I have public_html/modules/mycustommodule/views/PrestaShop/src/Adapter/Product/PriceCalculator.php
and this is not work. 例如,我想覆盖文件
public_html/src/Adapter/Product/PriceCalculator.php
因此在我的模块中,我有public_html/modules/mycustommodule/views/PrestaShop/src/Adapter/Product/PriceCalculator.php
,这是行不通的。 There is any possibility to override those files? 是否有可能覆盖这些文件?
I think that is not possible to override this folder, you can't overrides of other things than classes/controllers/modules with /override/ directory is not available anymore. 我认为这是无法覆盖此文件夹的,您不能覆盖其他东西,除非具有/ override /目录的类/控制器/模块不再可用。 You can reed informations about that in their post : planned to ovverride
您可以在他们的帖子中查看有关此信息: 计划进行ovverride
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.