From d11f994b4e608640b1b2f2155dcd166adee54c21 Mon Sep 17 00:00:00 2001 From: Drew Rowan Date: Mon, 24 Oct 2022 14:51:59 +0200 Subject: [PATCH] Release 1.0.52 --- README.md | 4 ++-- docs/en/documentation.html | 4 ++-- upload/admin/view/template/payment/wallee.tpl | 4 ++-- upload/system/library/wallee/dynamic/catalog/model.php | 7 +++++++ 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fd1efe5..b19f978 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This repository contains the OpenCart wallee payment module that enables the sh ## Documentation -* [English](https://plugin-documentation.wallee.com/wallee-payment/opencart-2.1/1.0.51/docs/en/documentation.html) +* [English](https://plugin-documentation.wallee.com/wallee-payment/opencart-2.1/1.0.52/docs/en/documentation.html) ## Support @@ -21,4 +21,4 @@ Support queries can be issued on the [wallee support site](https://app-wallee.co ## License -Please see the [license file](https://github.com/wallee-payment/opencart-2.1/blob/1.0.51/LICENSE) for more information. \ No newline at end of file +Please see the [license file](https://github.com/wallee-payment/opencart-2.1/blob/1.0.52/LICENSE) for more information. \ No newline at end of file diff --git a/docs/en/documentation.html b/docs/en/documentation.html index 8c353c6..8aafe4e 100644 --- a/docs/en/documentation.html +++ b/docs/en/documentation.html @@ -22,7 +22,7 @@

Documentation

  • - + Source
  • @@ -49,7 +49,7 @@

    1. -

      Download the extension.

      +

      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.

      diff --git a/upload/admin/view/template/payment/wallee.tpl b/upload/admin/view/template/payment/wallee.tpl index 720a7ea..96128f7 100644 --- a/upload/admin/view/template/payment/wallee.tpl +++ b/upload/admin/view/template/payment/wallee.tpl @@ -257,14 +257,14 @@
      -

      1.0.51

      +

      1.0.52

      -

      2022/10/07 10:59:56

      +

      2022/10/24 14:51:52

      diff --git a/upload/system/library/wallee/dynamic/catalog/model.php b/upload/system/library/wallee/dynamic/catalog/model.php index db771db..6f60cbf 100644 --- a/upload/system/library/wallee/dynamic/catalog/model.php +++ b/upload/system/library/wallee/dynamic/catalog/model.php @@ -17,6 +17,13 @@ public function getMethod($address, $total){ return array(); } + // for journal3 one step checkout the user data is empty by default + // i assume this is some oversight by the folks at journal3 + $data = $this->registry->get('session')->data; + if(isset($data['j3_checkout_id']) && !isset($this->session->data['user_id'])) { + $this->session->data['user_id'] = $data['j3_checkout_id']; + } + // check if transaction can be saved to the session. if (\WalleeHelper::instance($this->registry)->getCustomerSessionIdentifier() === null) { return array();