diff --git a/README.md b/README.md index 31cc608..fcdc56b 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.1/1.0.51/docs/en/documentation.html) +* [English](https://plugin-documentation.postfinance-checkout.ch/pfpayments/opencart-2.1/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.1/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.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 51bad69..07cc2e2 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/postfinancecheckout.tpl b/upload/admin/view/template/payment/postfinancecheckout.tpl index 17aacd9..ee4537e 100644 --- a/upload/admin/view/template/payment/postfinancecheckout.tpl +++ b/upload/admin/view/template/payment/postfinancecheckout.tpl @@ -257,14 +257,14 @@
      -

      1.0.51

      +

      1.0.52

      -

      2022/10/07 10:58:51

      +

      2022/10/24 14:51:06

      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();