-
Notifications
You must be signed in to change notification settings - Fork 17
/
install.xml
59 lines (54 loc) · 1.73 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
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>PagSeguro Checkout Transparente</name>
<code>valdeir_pagseguro_checkout_transparente</code>
<version>2.1.0</version>
<author>Valdeir S.</author>
<link>https://valdeir.dev</link>
<file path="catalog/view/theme/*/template/account/order_info.twig">
<operation>
<search>
<![CDATA[{{ continue }}]]>
</search>
<add position="before">
<![CDATA[
{% if boleto %}
<div class="pull-left"><a href="{{ boleto }}" class="btn btn-primary" target="_blank">2ª via do boleto</a></div>
{% endif %}
]]>
</add>
</operation>
</file>
<file path="admin/view/template/sale/order_info.twig">
<operation>
<search>
<![CDATA[<h3 class="panel-title"><i class="fa fa-comment-o"></i> {{ text_history }}</h3>]]>
</search>
<add position="before" offset="2">
<![CDATA[
{{ pagseguro }}
]]>
</add>
</operation>
</file>
<file path="system/library/template/twig.php">
<operation>
<search>
<![CDATA[$file = DIR_TEMPLATE . $filename . '.twig';]]>
</search>
<add position="after">
<![CDATA[
if (version_compare(VERSION, '3.0.3.6', '==')) {
$file_ocmod = DIR_MODIFICATION . $filename . '.twig';
$application_folder = basename(DIR_APPLICATION);
$folder_ocmod_template = str_replace(DIR_APPLICATION, $application_folder . '/', DIR_TEMPLATE);
$file_ocmod = DIR_MODIFICATION . $folder_ocmod_template . $filename . '.twig';
if (is_file($file_ocmod)) {
$file = $file_ocmod;
}
}
]]>
</add>
</operation>
</file>
</modification>