From 0584b0fdec3cc3aeb62f8409cb1a3dbfa280257f Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Mon, 9 Jun 2025 11:32:07 +0530 Subject: [PATCH] Added the current installed version of QloApps in the Database --- install/models/install.php | 4 ++++ install/upgrade/upgrade.php | 1 + 2 files changed, 5 insertions(+) diff --git a/install/models/install.php b/install/models/install.php index 3e95362ae..4f48210c1 100644 --- a/install/models/install.php +++ b/install/models/install.php @@ -211,6 +211,9 @@ class InstallModelInstall extends InstallAbstractModel Configuration::updateGlobalValue('PS_LANG_DEFAULT', $id_lang); Configuration::updateGlobalValue('PS_VERSION_DB', _PS_INSTALL_VERSION_); Configuration::updateGlobalValue('PS_INSTALL_VERSION', _PS_INSTALL_VERSION_); + Configuration::updateGlobalValue('QLO_VERSION_DB', _QLO_INSTALL_VERSION_); + Configuration::updateGlobalValue('QLO_INSTALL_VERSION', _QLO_INSTALL_VERSION_); + return true; } @@ -475,6 +478,7 @@ class InstallModelInstall extends InstallAbstractModel Configuration::updateGlobalValue('PS_SHOP_DOMAIN', Tools::getHttpHost()); Configuration::updateGlobalValue('PS_SHOP_DOMAIN_SSL', Tools::getHttpHost()); Configuration::updateGlobalValue('PS_INSTALL_VERSION', _PS_INSTALL_VERSION_); + Configuration::updateGlobalValue('QLO_INSTALL_VERSION', _QLO_INSTALL_VERSION_); Configuration::updateGlobalValue('PS_LOCALE_LANGUAGE', $this->language->getLanguageIso()); Configuration::updateGlobalValue('PS_SHOP_NAME', $data['shop_name']); Configuration::updateGlobalValue('PS_SHOP_ACTIVITY', $data['shop_activity']); diff --git a/install/upgrade/upgrade.php b/install/upgrade/upgrade.php index 7cb6b8379..e30c7a9bd 100644 --- a/install/upgrade/upgrade.php +++ b/install/upgrade/upgrade.php @@ -434,6 +434,7 @@ if (empty($fail_result)) { Configuration::updateValue('PS_HIDE_OPTIMIZATION_TIPS', 0); Configuration::updateValue('PS_NEED_REBUILD_INDEX', 1); Configuration::updateValue('PS_VERSION_DB', _PS_INSTALL_VERSION_); + Configuration::updateGlobalValue('QLO_VERSION_DB', _QLO_INSTALL_VERSION_); $result .= $warningExist ? ''."\n" : ''."\n"; $result .= $requests; $result .= ''."\n";