Page 1 of 1
Problems extension installer
Posted: Tue Aug 01, 2017 4:06 am
by Frens
Hi,
I install a install.xml (code below) file (in a test.ocmod.zip) in OC 3.0.2.0
Upload seems good , use modifiactions refresh etc.
In tabel oc_modifications the code is present.
But in my front there is nothing change , no xxx add.
The strange thing is it show the code from a other .xml file i delete !
(if i disable the extension it shows nothing).
Someone any idea what is wrong? hope i am clear
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>test</name>
<code>Code_test</code>
<version>1.0</version>
<author>test</author>
<link>http://xxxx.com</link>
<file path="catalog/view/theme/default/template/common/header.twig">
<operation>
<search><![CDATA[<ul class="list-inline"> ]]></search>
<add position="add"><![CDATA[ xxx ]]></add>
</operation>
</file>
</modification>
Re: Problems extension installer
Posted: Tue Aug 01, 2017 7:35 am
by IP_CAM
Did you really check this by use of the OC DEFAULT THEME ?
This, because the Code itselfs looks ok.
Ernie
Re: Problems extension installer
Posted: Tue Aug 01, 2017 4:24 pm
by Frens
Yes i use the OC DEFAULT THEME
It is strange , i made a install.xml with code
(smal sample)
add 123 works fine
Then i made a new install.xml (first delete the previous)( refresh)
add xxx
In the table it is OK shows the xxx, but in the front it always show the add code 123 from firts sample, who is of course not more present in the table.
Clear browser cache try other browser , nothing help.
Re: Problems extension installer
Posted: Wed Aug 02, 2017 2:35 am
by kestas
I don't know why...

, but you need to delete all cash files from system/storage/ cash... except index.html. This only in the new oc 3.x.x... then should to work...
Re: Problems extension installer
Posted: Wed Aug 02, 2017 11:38 pm
by Frens
I delete the cash files , but noth help.
The code is noth in the tabel , but in the front store it is load.
If disable the extension in the admin in the front it is noth there (OK) , in the table the status is set to 0 (OK)
Maybe there is another place where store the extension outside the table
Re: Problems extension installer
Posted: Fri Aug 04, 2017 5:50 am
by JNeuhoff
Frens wrote: ↑Wed Aug 02, 2017 11:38 pm
I delete the cash files , but noth help.
The code is noth in the tabel , but in the front store it is load.
If disable the extension in the admin in the front it is noth there (OK) , in the table the status is set to 0 (OK)
Maybe there is another place where store the extension outside the table
IMHO OpenCart 3.0.2.0 is not yet suitable for a live site, it's still more like a beta-release. Its modification systems will be the cause of many errors. There are several built-in ways to modify a template file:
- the theme editor from the admin backend
- view/*/before event handlers
- OCmod modifications
- view/*/after event handlers
Make sure you haven't done any changes to your
header.twig via the theme editor, if you have, all OCmod-based changes will be ignored! Also make sure to clear the DIR_CACHE, as well as the ones used by twig and sass (click on the the top right star-icon of the dashboard page and then disable these caches).
Personally, I am inclined to use the Override Engine, and PHP-templates (*.tpl files) for frontend theme's template files and stay clear from the theme editor and OCmod!
Re: Problems extension installer
Posted: Fri Aug 04, 2017 2:51 pm
by Frens
Thanks.
Where to find , so i can try
Also make sure to clear the DIR_CACHE, as well as the ones used by twig and sass (click on the the top right star-icon of the dashboard page and then disable these caches).