-
Notifications
You must be signed in to change notification settings - Fork 8
/
install.xml
79 lines (79 loc) · 3.64 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
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>Todas as URLs amigáveis para OpenCart 3.0.x</name>
<code>todas-urls-amigaveis</code>
<version>3.0.1</version>
<author>OpenCart Brasil</author>
<link>http://www.opencartbrasil.com.br</link>
<file path="catalog/controller/startup/seo_url.php">
<operation>
<search><![CDATA[class ControllerStartupSeoUrl extends Controller {]]></search>
<add position="after"><![CDATA[
private $new_urls = array(
'common/home' => '',
'account/account' => 'conta/minha-conta',
'account/wishlist' => 'conta/lista-desejos',
'account/register' => 'conta/cadastro',
'account/login' => 'conta/acessar',
'account/forgotten' => 'conta/solicitar-senha',
'account/edit' => 'conta/informacoes',
'account/password' => 'conta/modificar-senha',
'account/address' => 'conta/enderecos',
'account/address/edit' => 'conta/enderecos/editar',
'account/address/delete' => 'conta/enderecos/excluir',
'account/address/add' => 'conta/enderecos/cadastro',
'account/reward' => 'conta/pontos',
'account/logout' => 'conta/sair',
'account/order' => 'conta/historico',
'account/order/info' => 'conta/historico/informacoes',
'account/order/reorder' => 'conta/historico/refazer',
'account/newsletter' => 'conta/informativo',
'account/download' => 'conta/downloads',
'account/transaction' => 'conta/transacoes',
'account/recurring' => 'conta/assinaturas',
'account/return' => 'conta/devolucoes',
'account/return/add' => 'conta/devolucoes/cadastro',
'account/return/success' => 'conta/devolucoes/confirmacao',
'account/voucher' => 'conta/vale-presentes/comprar',
'account/voucher/success' => 'conta/vale-presentes/confirmacao',
'account/tracking' => 'conta/afiliados/gerador-links',
'account/affiliate/edit' => 'conta/afiliados/editar',
'affiliate/register' => 'afiliados/cadastro',
'affiliate/login' => 'afiliados/acessar',
'checkout/cart' => 'carrinho',
'checkout/checkout' => 'carrinho/finalizar',
'checkout/success' => 'carrinho/finalizar/confirmacao',
'information/contact' => 'contato',
'information/contact/success' => 'contato/enviado',
'information/sitemap' => 'mapa-site',
'product/special' => 'promocoes',
'product/manufacturer' => 'marcas',
'product/compare' => 'comparar-produtos',
'product/search' => 'busca'
);
]]></add>
</operation>
<operation>
<search><![CDATA[$this->request->get['route'] = 'error/not_found';]]></search>
<add position="replace"><![CDATA[
if (in_array($this->request->get['_route_'], $this->new_urls)) {
$this->request->get['route'] = array_search($this->request->get['_route_'], $this->new_urls);
} else {
$this->request->get['route'] = 'error/not_found';
}
]]></add>
</operation>
<operation>
<search index="1"><![CDATA[unset($data[$key]);]]></search>
<add position="replace"><![CDATA[
unset($data[$key]);
} else {
$this->new_urls = array_flip($this->new_urls);
if (in_array($data['route'], $this->new_urls)) {
$url = '/' . array_search($data['route'], $this->new_urls);
}
$this->new_urls = array_flip($this->new_urls);
]]></add>
</operation>
</file>
</modification>