Answer the question
In order to leave comments, you need to log in
Why aren't Opencart 3 modifiers applied?
Good afternoon!
I downloaded two modules: Clearing the cache and SEO Pro from opencart3x.ru. I installed it normally through the installer, successfully, they are in the list of modifiers - they are enabled, they are also in the modules - they are enabled. I cleared all possible caches, updated modifiers, changed the browser, reloaded ctrl + f5 and still the CNC Type item does not appear, just as the Cache Clear block does not appear in the admin panel. Although no errors were found in the ocmod logs and the modified settings file is on the hosting. What else can be done to enable CNC Type - SEO Pro?
Opencart 3.0.3.6
Answer the question
In order to leave comments, you need to log in
Answer:
In the file domain_folder/system/modification.xml, replace all the code with this
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Modification Default</name>
<code>default</code>
<version>1.1</version>
<author>OpenCart Ltd</author>
<link>http://www.opencart.com</link>
<file path="system/{engine,library}/{action,loader,config,language}*.php|system/library/template/template.php">
<operation>
<search regex="true">
<![CDATA[~(require|include)(_once)?\(([^)]+)~]]>
</search>
<add position="replace">
<![CDATA[$1$2(modification($3)]]>
</add>
</operation>
</file>
<file path="system/library/template/twig.php">
<operation>
<search>
<![CDATA[if (is_file($file)) {]]>
</search>
<add position="replace">
<![CDATA[if (defined('DIR_CATALOG') && is_file(DIR_MODIFICATION . 'admin/view/template/' . $filename . '.twig')) {
$code = file_get_contents(DIR_MODIFICATION . 'admin/view/template/' . $filename . '.twig');
} elseif (is_file(DIR_MODIFICATION . 'catalog/view/theme/' . $filename . '.twig')) {
$code = file_get_contents(DIR_MODIFICATION . 'catalog/view/theme/' . $filename . '.twig');
} elseif (is_file($file)) {]]>
</add>
</operation>
</file>
</modification>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question