forked from romariodevjava/opencart-module-mercadolivre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.xml
110 lines (95 loc) · 4.48 KB
/
install.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Mercado Livre</name>
<version>1.0</version>
<author>Romário Pires</author>
<code>mercadolivre</code>
<link>[email protected]</link>
<file path="admin/model/catalog/product.php">
<operation>
<search><![CDATA[$product_option_value['subtract'],]]></search>
<add position="after"><![CDATA[
'image' => $product_option_value['image'],
]]></add>
</operation>
</file>
<file path="catalog/controller/startup/seo_url.php">
<operation>
<search><![CDATA[$this->request->get['route'] = 'error/not_found';]]></search>
<add position="replace"><![CDATA[
if ($this->request->get['_route_'] == 'module_mercadolivre') {
$this->request->get['route'] = 'extension/module/mercadolivre';
} else {
$this->request->get['route'] = 'error/not_found';
}
]]></add>
</operation>
</file>
<file path="admin/language/pt-br/common/column_left.php">
<operation>
<search><![CDATA[$_['text_extension']]]></search>
<add position="before"><![CDATA[
$_['text_mercadolivre_dashboard'] = 'Dashboard';
$_['text_mercadolivre_settings'] = 'Configurações';
$_['text_mercadolivre_authentication'] = 'Fazer Autenticação';
$_['text_mercadolivre_orders'] = 'Pedidos';
$_['text_mercadolivre_questions'] = 'Perguntas';
$_['text_mercadolivre_products'] = 'Produtos';
$_['text_mercadolivre'] = 'Mercado Livre Extensão';
$_['text_mercadolivre_logs'] = 'Logs';
]]></add>
</operation>
</file>
<file path="admin/controller/common/column_left.php">
<operation>
<search><![CDATA[$catalog = array();]]></search>
<add position="before"><![CDATA[
$mercadolivre = array();
$mercadolivre[] = array(
'name' => $this->language->get('text_mercadolivre_dashboard'),
'href' => $this->url->link('extension/module/mercadolivre/dashboard', 'user_token=' . $this->session->data['user_token'], true),
'children' => array()
);
$mercadolivre[] = array(
'name' => $this->language->get('text_mercadolivre_settings'),
'href' => $this->url->link('extension/module/mercadolivre', 'user_token=' . $this->session->data['user_token'], true),
'children' => array()
);
$mercadolivre[] = array(
'name' => $this->language->get('text_mercadolivre_authentication'),
'href' => $this->url->link('extension/module/mercadolivre/authentication', 'user_token=' . $this->session->data['user_token'], true),
'children' => array()
);
$mercadolivre[] = array(
'name' => $this->language->get('text_mercadolivre_orders'),
'href' => $this->url->link('extension/module/mercadolivre/orders', 'user_token=' . $this->session->data['user_token'], true),
'children' => array()
);
$mercadolivre[] = array(
'name' => $this->language->get('text_mercadolivre_questions'),
'href' => $this->url->link('extension/module/mercadolivre/questions', 'user_token=' . $this->session->data['user_token'], true),
'children' => array()
);
$mercadolivre[] = array(
'name' => $this->language->get('text_mercadolivre_products'),
'href' => $this->url->link('extension/module/mercadolivre/products', 'user_token=' . $this->session->data['user_token'], true),
'children' => array()
);
$mercadolivre[] = array(
'name' => $this->language->get('text_mercadolivre_logs'),
'href' => $this->url->link('extension/module/mercadolivre/logs', 'user_token=' . $this->session->data['user_token'], true),
'children' => array()
);
if ($this->config->get('module_mercadolivre_status')) {
$data['menus'][] = array(
'id' => 'menu-mercadolivre',
'icon' => 'fa-shopping-bag',
'name' => $this->language->get('text_mercadolivre'),
'href' => '',
'children' => $mercadolivre
);
}
]]></add>
</operation>
</file>
</modification>