Export/Import Tool
https://www.opencart.com/index.php?rout ... sion_id=17
Well, the XML File contains an error, as I look at it, since it is not possible,
to add anything
AFTER only the first part of a language Variable OcMod
Anchor line, like this:
$_['text_backup']
This Language Definition OcMod Anchor line would have to look like this,
for the DEFAULT OC english Language Section at least, in the
install.xml file:
$_['text_backup'] = 'Backup / Restore';
to place the OcMod Content correctly, to make it work.
---
So, better, MAKE the additional Language Variable to be inserted by OcMod
BEFORE
in the
install.xml file, like this:
Code: Select all
<search><![CDATA[$_['text_backup']]]></search>
<add position="before"><![CDATA[
$_['text_export_import'] = 'Export / Import';
]]></add>
and try to install it again, after FIRST clearing out your Modification
Section, to make sure, nothing from the old install attempt still exists.
---
But if you plan to keep this Extensions anyway, I would try to upload the OcMod ADMIN and
SYSTEM Directory with it's Content to the Shop Sub, by use of an FTP Client, and take the
OcMod Code out of the install.xml file, and place it directly into the Source Files, like in the File:
admin/controller/common/column_left.php
BEFORE THIS LINE:
Code: Select all
if ($this->user->hasPermission('access', 'tool/upload')) {
ADD THIS:
Code: Select all
if ($this->user->hasPermission('access', 'extension/export_import')) {
$maintenance[] = array(
'name' => $this->language->get('text_export_import'),
'href' => $this->url->link('extension/export_import', 'user_token=' . $this->session->data['user_token'], true),
'children' => array()
);
}
----------------------------------------------
and in the File:
admin/language/en-gb/common/column_left.php (english Language!)
BEFORE or AFTER THIS LINE :
Code: Select all
$_['text_backup'] = 'Backup / Restore';
ADD THIS:
Code: Select all
$_['text_export_import'] = 'Export / Import';
---
Just an idea, good Luck!
Ernie
PS: And since the next Version OC will use different Code again, it really does not matter,
if existing OC Source Code is changed, it will be replaced by new Version Files anyway, just to have it said...