From 35414ee062647b3ee47b53d96b5dd23ac1971a1a Mon Sep 17 00:00:00 2001 From: George Mylonas Date: Fri, 16 Jun 2023 12:26:49 +0300 Subject: [PATCH] Added compatibility for PS 8.0.4 --- codwfeeplus changelog.md | 2 ++ codwfeeplus/codwfeeplus.php | 4 ++-- codwfeeplus/config.xml | 2 +- codwfeeplus/controllers/front/ajax.php | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/codwfeeplus changelog.md b/codwfeeplus changelog.md index 3c1d7b9..9a5cd16 100644 --- a/codwfeeplus changelog.md +++ b/codwfeeplus changelog.md @@ -1,3 +1,5 @@ +## v1.1.9 +* Added compatibility for PS 8.0.4. ## v1.1.8 * Fixed a bug that prevented the module from working when a fresh install was made. ## v1.1.7 diff --git a/codwfeeplus/codwfeeplus.php b/codwfeeplus/codwfeeplus.php index b2d7720..dff8fab 100644 --- a/codwfeeplus/codwfeeplus.php +++ b/codwfeeplus/codwfeeplus.php @@ -64,7 +64,7 @@ public function __construct() } $this->name = 'codwfeeplus'; $this->tab = 'payments_gateways'; - $this->version = '1.1.8'; + $this->version = '1.1.9'; $this->author = 'Sakis Gkiokas'; $this->need_instance = 1; if ($this->is17) { @@ -83,7 +83,7 @@ public function __construct() $this->displayName = $this->l('Cash on delivery with fee (COD) PLUS'); $this->description = $this->l('Accept cash on delivery payments with extra fee and more options'); - $this->ps_versions_compliancy = array('min' => '1.6.0.6', 'max' => '1.7.99.99'); + $this->ps_versions_compliancy = array('min' => '1.6.0.6', 'max' => '8.99.99'); $this->public_name = $this->l('Cash on delivery'); $this->tab_name = $this->l('COD with Fee Plus'); $this->_integration_general_arr = array( diff --git a/codwfeeplus/config.xml b/codwfeeplus/config.xml index 562acef..5d23d0d 100644 --- a/codwfeeplus/config.xml +++ b/codwfeeplus/config.xml @@ -2,7 +2,7 @@ codwfeeplus - + diff --git a/codwfeeplus/controllers/front/ajax.php b/codwfeeplus/controllers/front/ajax.php index 4a0fb00..822e2d0 100644 --- a/codwfeeplus/controllers/front/ajax.php +++ b/codwfeeplus/controllers/front/ajax.php @@ -90,7 +90,7 @@ public function postProcess() ob_end_clean(); header('Content-Type: application/json'); - $this->ajaxDie(Tools::jsonEncode( + $this->ajaxDie(json_encode( array( 'preview' => $this->render('checkout/_partials/cart-summary', array( 'cart' => $cart,