OCMOD 3.0.3.7 not working with .twig file new install.
XML:
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Template Test</name>
<version>1.0</version>
<link>Blnukem@gmail.com</link>
<file path="catalog/view/theme/default/template/common/header.twig">
<operation>
<search><![CDATA[
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
]]></search>
<add position="after"><![CDATA[
<link href="catalog/view/theme/default/stylesheet/tesfile.css" rel="stylesheet">
]]></add>
</operation>
</file>
</modification>
XML:
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Template Test</name>
<version>1.0</version>
<link>Blnukem@gmail.com</link>
<file path="catalog/view/theme/default/template/common/header.twig">
<operation>
<search><![CDATA[
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
]]></search>
<add position="after"><![CDATA[
<link href="catalog/view/theme/default/stylesheet/tesfile.css" rel="stylesheet">
]]></add>
</operation>
</file>
</modification>
Don't forget to do a refresh of your OCmod modifications at Extensions > Modifications.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
And clear theme cache and SASS cache.
Also you can check ocmod logs...
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Sure it is 3.0.3.7 and not 3.0.3.6 ?
Your file is same as this one?
https://github.com/opencart/opencart/bl ... cation.xml
Your file is same as this one?
https://github.com/opencart/opencart/bl ... cation.xml
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Your ocmod isn't formatted correctly, eg: missing <code></code>
Should be like:
Also if you have used the theme editor it will take priority over any ocmod.
Should be like:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name></name>
<version>1.0</version>
<author></author>
<link></link>
<code></code>
.....
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Who is online
Users browsing this forum: No registered users and 112 guests