Post by Frens » Tue Aug 01, 2017 4:06 am

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>

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by IP_CAM » Tue Aug 01, 2017 7:35 am

Did you really check this by use of the OC DEFAULT THEME ?
This, because the Code itselfs looks ok.
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Frens » Tue Aug 01, 2017 4:24 pm

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.

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by kestas » Wed Aug 02, 2017 2:35 am

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...

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by Frens » 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

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by JNeuhoff » Fri Aug 04, 2017 5:50 am

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!

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Frens » Fri Aug 04, 2017 2:51 pm

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).

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm
Who is online

Users browsing this forum: shivankagrawal and 146 guests