From 2889076e8d2ad0a52bd179d8cdb8b6982839a310 Mon Sep 17 00:00:00 2001 From: Drew Rowan Date: Mon, 24 Oct 2022 14:53:34 +0200 Subject: [PATCH] Release 1.0.52 --- README.md | 4 ++-- docs/en/documentation.html | 4 ++-- .../template/extension/payment/postfinancecheckout.tpl | 4 ++-- .../library/postfinancecheckout/dynamic/catalog/model.php | 7 +++++++ 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ce5dc7f..14c1602 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This repository contains the OpenCart PostFinance Checkout payment module that ## Documentation -* [English](https://plugin-documentation.postfinance-checkout.ch/pfpayments/opencart-2.3/1.0.51/docs/en/documentation.html) +* [English](https://plugin-documentation.postfinance-checkout.ch/pfpayments/opencart-2.3/1.0.52/docs/en/documentation.html) ## Support @@ -21,4 +21,4 @@ Support queries can be issued on the [PostFinance Checkout support site](https:/ ## License -Please see the [license file](https://github.com/pfpayments/opencart-2.3/blob/1.0.51/LICENSE) for more information. \ No newline at end of file +Please see the [license file](https://github.com/pfpayments/opencart-2.3/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 44c6da4..bf901ab 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/extension/payment/postfinancecheckout.tpl b/upload/admin/view/template/extension/payment/postfinancecheckout.tpl index 5b87577..9236bfd 100644 --- a/upload/admin/view/template/extension/payment/postfinancecheckout.tpl +++ b/upload/admin/view/template/extension/payment/postfinancecheckout.tpl @@ -271,14 +271,14 @@
      -

      1.0.51

      +

      1.0.52

      -

      2022/10/07 11:02:14

      +

      2022/10/24 14:53:31

      diff --git a/upload/system/library/postfinancecheckout/dynamic/catalog/model.php b/upload/system/library/postfinancecheckout/dynamic/catalog/model.php index ad8f217..8feaf10 100644 --- a/upload/system/library/postfinancecheckout/dynamic/catalog/model.php +++ b/upload/system/library/postfinancecheckout/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 (\PostFinanceCheckoutHelper::instance($this->registry)->getCustomerSessionIdentifier() === null) { return array();