Post by revington » Thu Sep 28, 2017 6:16 pm

Hi there, I'm new at opencart development.
I'm trying to create a module (opencart 2.3.0.2) which needs to change some files.
I've wrote the following install.xml file

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
	<code>20</code>
	<name>name</name>
	<version>1.0.1</version>
	<author>me</author>
	<link>http://localhost</link>
	<file path="admin/view/template/extension/extension/analytics.tpl">
		<operation>
			<search><![CDATA[
<fieldset>
				]]></search>
			<add position="after"><![CDATA[
<!--test-->
				]]></add>
		</operation>
	</file>
</modification>
and built a test.ocmod.zip file which includes this file plus the upload directory.
Once the extension is installed the php files are copied to opencart directory but the install.xml are not applied.
Any idea about what is going on?
Any simple way to debug this?

Thanks in advance,

Pedro

Newbie

Posts

Joined
Thu Sep 28, 2017 5:57 pm

Post by revington » Thu Sep 28, 2017 6:36 pm

Okay, after fighting for ours with this I've just discovered that opencart does not modify the files in the hard drive but it patches them on a cache...

Newbie

Posts

Joined
Thu Sep 28, 2017 5:57 pm
Who is online

Users browsing this forum: No registered users and 72 guests