diff --git a/CHANGELOG.md b/CHANGELOG.md index 3515c7db..663a8a84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ PrestaShop 1.6.x, 1.7.x and 8.x # Changelog +## [4.0.1] +### Fixed +- Triggered order update when saving missing transaction data. + ## [4.0.0] ### Fixed - Streamline and simplify management of order lines and amounts. diff --git a/altapay.php b/altapay.php index 8aac2d95..1ce095bc 100644 --- a/altapay.php +++ b/altapay.php @@ -32,10 +32,10 @@ public function __construct() { $this->name = 'altapay'; $this->tab = 'payments_gateways'; - $this->version = '4.0.0'; + $this->version = '4.0.1'; $this->author = 'AltaPay A/S'; $this->is_eu_compatible = 1; - $this->ps_versions_compliancy = ['min' => '1.6.0.1', 'max' => '8.2.1']; + $this->ps_versions_compliancy = ['min' => '1.6.0.1', 'max' => '8.2.3']; $this->currencies = true; $this->currencies_mode = 'checkbox'; $this->bootstrap = true; @@ -2398,6 +2398,9 @@ public function hookAdminOrder($params) PrestaShopLogger::addLog("Could not sync payment info for Order ID: {$params['id_order']}", 3, null, $this->name, $this->id, true); return false; + } else { + $orderDetail->date_upd = date('Y-m-d H:i:s'); + $orderDetail->update(); } } @@ -3842,6 +3845,9 @@ public function syncOrderDataFromGateway($results, $orderDetail, $params) PrestaShopLogger::addLog("Could not sync payment info for Order ID: {$params['id_order']}", 3, null, $this->name, $this->id, true); return false; + } else { + $orderDetail->date_upd = date('Y-m-d H:i:s'); + $orderDetail->update(); } } catch (Exception $e) { PrestaShopLogger::addLog('Payment API Error: ' . $e->getMessage(), 3, null, $this->name, $this->id, true); diff --git a/config.xml b/config.xml index a7bb3fe5..485bd50a 100644 --- a/config.xml +++ b/config.xml @@ -10,7 +10,7 @@ altapay - + diff --git a/helpers.php b/helpers.php index 9b79be95..ca0559ee 100644 --- a/helpers.php +++ b/helpers.php @@ -24,7 +24,7 @@ function transactionInfo($transactionInfo = []) { $pluginName = 'altapay'; - $pluginVersion = '4.0.0'; + $pluginVersion = '4.0.1'; // Transaction info $transactionInfo['ecomPlatform'] = 'PrestaShop';