Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit 679509a

Browse files
committed
Release 1.0.14
1 parent 3edb90a commit 679509a

File tree

6 files changed

+49
-32
lines changed

6 files changed

+49
-32
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ This repository contains the OpenCart wallee payment module that enables the sh
1111

1212
## Documentation
1313

14-
* [English](https://plugin-documentation.wallee.com/wallee-payment/opencart-2.0/1.0.13/docs/en/documentation.html)
14+
* [English](https://plugin-documentation.wallee.com/wallee-payment/opencart-2.0/1.0.14/docs/en/documentation.html)
1515

1616
## License
1717

18-
Please see the [license file](https://github.com/wallee-payment/opencart-2.0/blob/1.0.13/LICENSE) for more information.
18+
Please see the [license file](https://github.com/wallee-payment/opencart-2.0/blob/1.0.14/LICENSE) for more information.

docs/en/assets/base.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,30 @@ table td[class*="col-"],table th[class*="col-"] {
253253
display: table-cell;
254254
}
255255

256+
ol.glossary {
257+
counter-reset: glossary-counter;
258+
list-style: none;
259+
padding-left: 40px;
260+
}
261+
262+
ol.glossary li {
263+
counter-increment: glossary-counter;
264+
position: relative;
265+
}
266+
267+
ol.glossary li::before {
268+
content: counter(glossary-counter);
269+
position: absolute;
270+
background-color: #73EAA9;
271+
color: #fff;
272+
border-radius: 100px;
273+
width: 24px;
274+
left: -40px;
275+
text-align: center;
276+
font-weight: bold;
277+
line-height: 24px;
278+
}
279+
256280
.layout-wrapper {
257281
position: relative;
258282
width: 100%;

docs/en/documentation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2>Documentation</h2> </div>
2121
</a>
2222
</li>
2323
<li>
24-
<a href="https://github.com/wallee-payment/opencart-2.0/releases/tag/1.0.13/">
24+
<a href="https://github.com/wallee-payment/opencart-2.0/releases/tag/1.0.14/">
2525
Source
2626
</a>
2727
</li>
@@ -48,7 +48,7 @@ <h1>
4848
<div class="olist arabic">
4949
<ol class="arabic">
5050
<li>
51-
<p><a href="https://github.com/wallee-payment/opencart-2.0/releases/tag/1.0.13/">Download</a> the extension.</p>
51+
<p><a href="https://github.com/wallee-payment/opencart-2.0/releases/tag/1.0.14/">Download</a> the extension.</p>
5252
</li>
5353
<li>
5454
<p>Extract the files and upload the content of the <code>Upload</code> directory into the root directory of your store using FTP/SSH.</p>

upload/admin/model/extension/wallee/modification.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@ class ModelExtensionWalleeModification extends AbstractModel {
66

77
public function install(){
88
$path = DIR_SYSTEM . "library/wallee/modification/";
9+
$installedModifications = $this->getModificationModel()->getModifications();
910
foreach (WalleeVersionHelper::getModifications() as $code => $modification) {
10-
$this->importModification($path . $modification['file'], $modification['default_status']);
11+
$status = 0;
12+
foreach($installedModifications as $installedModification) {
13+
if($installedModification['code'] == $code) {
14+
$status = $installedModification['status'];
15+
}
16+
}
17+
$this->importModification($path . $modification['file'], $status);
1118
}
1219
}
1320

upload/admin/model/extension/wallee/setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public function uninstall($purge = true){
3636
$this->model_extension_wallee_dynamic->uninstall();
3737
if ($purge) {
3838
$this->model_extension_wallee_migration->purge();
39+
$this->model_extension_wallee_modification->uninstall();
3940
}
40-
$this->model_extension_wallee_modification->uninstall();
4141

4242
$this->removeEvents();
4343
$this->removePermissions();

upload/system/library/wallee/modification/WalleeCore.ocmod.xml

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,24 @@
88
<link>http://github.com/wallee-payment/opencart</link>
99
<file path="admin/controller/extension/payment.php">
1010
<operation>
11-
<search><![CDATA[
12-
$this->model_extension_extension->uninstall('payment', $value);
13-
]]></search>
14-
<add position="replace" offset="2"><![CDATA[
15-
if (strpos($value, 'wallee_') === false) {
11+
<search><![CDATA[$this->model_extension_extension->uninstall('payment', $value);]]></search>
12+
<add position="replace" offset="2"><![CDATA[if (strpos($value, 'wallee_') === false) {
1613
$this->model_extension_extension->uninstall('payment', $value);
17-
}
18-
]]></add>
14+
}]]></add>
1915
</operation>
16+
</file>
17+
<file path="admin/controller/extension/payment.php">
2018
<operation>
21-
<search><![CDATA[
22-
unset($extensions[$key]);
23-
]]></search>
24-
<add position="replace" offset="2"><![CDATA[
25-
if (strpos($value, 'wallee_') === false) {
19+
<search><![CDATA[unset($extensions[$key]);]]></search>
20+
<add position="replace" offset="2"><![CDATA[if (strpos($value, 'wallee_') === false) {
2621
unset($extensions[$key]);
27-
}
28-
]]></add>
22+
}]]></add>
2923
</operation>
3024
</file>
3125
<file path="admin/controller/error/permission.php">
3226
<operation>
33-
<search><![CDATA[
34-
$ignore = array(
35-
]]></search>
36-
<add position="after"><![CDATA[
37-
'extension/wallee',
38-
]]></add>
27+
<search><![CDATA[$ignore = array(]]></search>
28+
<add position="after"><![CDATA['extension/wallee',]]></add>
3929
</operation>
4030
</file>
4131
<!-- order info -->
@@ -59,12 +49,8 @@
5949
</file>
6050
<file path="admin/controller/sale/order.php">
6151
<operation>
62-
<search><![CDATA[
63-
if (is_file(DIR_CATALOG . 'controller/payment/' . $order_info['payment_code'] . '.php')) {
64-
]]></search>
65-
<add position="replace"><![CDATA[
66-
if (is_file(DIR_CATALOG . 'controller/payment/' . $order_info['payment_code'] . '.php') || strpos($order_info['payment_code'], 'wallee_') === 0) {
67-
]]></add>
52+
<search><![CDATA[if (is_file(DIR_CATALOG . 'controller/payment/' . $order_info['payment_code'] . '.php')) {]]></search>
53+
<add position="replace"><![CDATA[if (is_file(DIR_CATALOG . 'controller/payment/' . $order_info['payment_code'] . '.php') || strpos($order_info['payment_code'], 'wallee_') === 0) {]]></add>
6854
</operation>
6955
</file>
7056

0 commit comments

Comments
 (0)