-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.xml
More file actions
42 lines (38 loc) · 2.22 KB
/
install.xml
File metadata and controls
42 lines (38 loc) · 2.22 KB
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
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>OpenCart SecurePay Api Extension</name >
<version>1.3.1</version>
<author>Sydney Ecommerce</author>
<link>https://www.sydneyecommerce.com.au/</link>
<code>SecurePayApi-v1.3</code>
<file error="log" path="admin/view/template/sale/order_info.twig">
<operation info="Add buttons">
<search offset="0" error="log"><![CDATA[{% endif %} </div>]]></search>
<add position="after"><![CDATA[{{ securepayapi_buttons|default("Error: Cannot add securepay api buttons") }}]]></add>
</operation>
</file>
<file error="log" path="admin/controller/sale/order.php">
<operation info="Generate buttons">
<search error="log"><![CDATA[// Payment Address]]></search>
<add position="before">
<![CDATA[
if ($order_info['payment_code'] == 'securepayapi') {
$this->load->language('extension/payment/securepayapi_order');
$securepayapi_data = array();
$securepayapi_data['securepayapi_tittle'] = sprintf("%s actions", $this->config->get('payment_securepayapi_tittle'));
$securepayapi_data['user_token'] = $this->session->data['user_token'];
$securepayapi_data['currency_left'] = $this->currency->getSymbolLeft($this->session->data['currency']);
$securepayapi_data['currency_right'] = $this->currency->getSymbolRight($this->session->data['currency']);
$securepayapi_data['catalog'] = $data['catalog'] = $this->request->server['HTTPS'] ? HTTPS_CATALOG : HTTP_CATALOG;
if ($order_info['order_status_id'] == 1) {
// pending
$securepayapi_data['need_capture'] = true;
}
$securepayapi_data['order_id'] = $order_info['order_id'];
$data['securepayapi_buttons'] = $this->load->view('extension/payment/securepayapi_order', $securepayapi_data);
}
]]>
</add>
</operation>
</file>
</modification>