Skip to content

Commit

Permalink
Release 1.0.30
Browse files Browse the repository at this point in the history
  • Loading branch information
sbossert committed Nov 18, 2019
1 parent e58504d commit e82452c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ This repository contains the OpenCart wallee payment module that enables the sh

## Documentation

* [English](https://plugin-documentation.wallee.com/wallee-payment/opencart-3.0/1.0.29/docs/en/documentation.html)
* [English](https://plugin-documentation.wallee.com/wallee-payment/opencart-3.0/1.0.30/docs/en/documentation.html)

## License

Please see the [license file](https://github.com/wallee-payment/opencart-3.0/blob/1.0.29/LICENSE) for more information.
Please see the [license file](https://github.com/wallee-payment/opencart-3.0/blob/1.0.30/LICENSE) for more information.
2 changes: 1 addition & 1 deletion docs/en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

== Installation

1. link:https://github.com/wallee-payment/opencart-3.0/releases/tag/1.0.29/[Download] the extension.
1. link:https://github.com/wallee-payment/opencart-3.0/releases/tag/1.0.30/[Download] the extension.
2. Extract the files and upload the content of the `Upload` directory into the root directory of your store using FTP/SSH.
3. Login to the backend of your OpenCart store.
4. Navigate to Extensions -> Payment to install the plugin.
Expand Down
4 changes: 2 additions & 2 deletions docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/wallee-payment/opencart-3.0/releases/tag/1.0.29/">
<a href="https://github.com/wallee-payment/opencart-3.0/releases/tag/1.0.30/">
Source
</a>
</li>
Expand All @@ -48,7 +48,7 @@ <h1>
<div class="olist arabic">
<ol class="arabic">
<li>
<p><a href="https://github.com/wallee-payment/opencart-3.0/releases/tag/1.0.29/">Download</a> the extension.</p>
<p><a href="https://github.com/wallee-payment/opencart-3.0/releases/tag/1.0.30/">Download</a> the extension.</p>
</li>
<li>
<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>
Expand Down
6 changes: 5 additions & 1 deletion upload/system/library/wallee/service/line_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,12 @@ private function createLineItemFromProduct($product){
$product['tax_class_id'] = $this->getTaxClassByProductId($product['product_id']);

if ($this->coupon && (!$this->coupon['product'] || in_array($product['product_id'], $this->coupon['product']))) {
$count = 1;
if(!empty($this->coupon['product'])) {
$count = count($this->coupon['product']);
}
if ($this->coupon['type'] == 'F') {
$discount = $this->coupon['discount'] * ($product['total'] / $this->sub_total);
$discount = $this->coupon['discount'] / $count;
}
elseif ($this->coupon['type'] == 'P') {
$discount = $product['total'] / 100 * $this->coupon['discount'];
Expand Down

0 comments on commit e82452c

Please sign in to comment.