From 8bee1d8378ee295a07b962883ccb5a416109048b Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Wed, 10 Sep 2025 15:54:05 +0530 Subject: [PATCH 01/44] Fixed: Getting Access denied issue on the back-office --- classes/Profile.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/classes/Profile.php b/classes/Profile.php index 1a9dabda2..39637163a 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -141,11 +141,18 @@ class ProfileCore extends ObjectModel ); } } else { - $result = Db::getInstance()->executeS(' - SELECT * - FROM `'._DB_PREFIX_.'access` a - LEFT JOIN `'._DB_PREFIX_.'tab` t ON t.id_tab = a.id_tab - WHERE `id_profile` = '.(int)$id_profile); + if ($result = Db::getInstance()->executeS(' + SELECT * FROM `'._DB_PREFIX_.'access` a + LEFT JOIN `'._DB_PREFIX_.'tab` t ON t.id_tab = a.id_tab + WHERE `id_profile` = '.(int)$id_profile) + ) { + foreach ($result as $key => $profileAccess) { + $result[$key]['view'] = (int) $profileAccess['view']; + $result[$key]['delete'] = (int) $profileAccess['delete']; + $result[$key]['add'] = (int) $profileAccess['add']; + $result[$key]['edit'] = (int) $profileAccess['edit']; + } + } foreach ($result as $row) { self::$_cache_accesses[$id_profile][$type][$row[$type]] = $row; From 1a853640df47d6ae4e729606cf0837403e6f98e9 Mon Sep 17 00:00:00 2001 From: amandeep sharma qlo Date: Tue, 28 Oct 2025 11:32:27 +0530 Subject: [PATCH 02/44] Fixed: Improper Session Invalidation --- classes/Cookie.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/classes/Cookie.php b/classes/Cookie.php index de404e6ae..ef31241ee 100644 --- a/classes/Cookie.php +++ b/classes/Cookie.php @@ -332,6 +332,14 @@ class CookieCore $this->logout(); } + if (isset($this->_content['id_customer']) && isset($this->_content['passwd']) && (int)$this->_content['id_customer']) { + if (Validate::isLoadedObject($objCustomer = new Customer((int)$this->_content['id_customer']))) { + if ($objCustomer->passwd != $this->_content['passwd']) { + $this->logout(); + } + } + } + if (!isset($this->_content['date_add'])) { $this->_content['date_add'] = date('Y-m-d H:i:s'); } From ea5ae9c3aecb91709c15b193fe6fdc625caa6f55 Mon Sep 17 00:00:00 2001 From: Amit sharma Date: Mon, 24 Nov 2025 13:37:38 +0530 Subject: [PATCH 03/44] Fixed : Need to add id elem in the callback for the start Tree --- admin/themes/default/template/helpers/tree/tree.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/template/helpers/tree/tree.tpl b/admin/themes/default/template/helpers/tree/tree.tpl index c81b96460..8942abe52 100644 --- a/admin/themes/default/template/helpers/tree/tree.tpl +++ b/admin/themes/default/template/helpers/tree/tree.tpl @@ -123,7 +123,7 @@ function startTree(idElem) { if (typeof $.fn.tree === 'undefined') { - setTimeout(startTree, 100); + setTimeout(function() { startTree(idElem); }, 100); return; } From 5b1bca050e97c249d168800d5083e9b337a24566 Mon Sep 17 00:00:00 2001 From: Amit sharma Date: Thu, 27 Nov 2025 16:40:03 +0530 Subject: [PATCH 04/44] Fixed: use is_object instead of isset --- classes/controller/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 67d88e69a..65442ce7d 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -2387,7 +2387,7 @@ class AdminControllerCore extends Controller $must_have_module_list = file_get_contents(_PS_ROOT_DIR_.Module::CACHE_FILE_MUST_HAVE_MODULES_LIST); if (!empty($must_have_module_list) && $must_have_module_list_xml = @simplexml_load_string($must_have_module_list)) { $must_have_module_list_array = array(); - if (is_object($country_module_list_xml->module)) { + if (is_object($must_have_module_list_xml->module)) { foreach ($must_have_module_list_xml->module as $l => $mo) { $all_module_list[] = (string)$mo->name; } From 311da0efe756304f0c0d8bf2ddaec1464670af0c Mon Sep 17 00:00:00 2001 From: Amit sharma Date: Fri, 5 Dec 2025 11:59:28 +0530 Subject: [PATCH 05/44] Fixed: Show the payment option in the Payment Resource tab on the checkout page when trying to pay using the PayPal payment method. --- .../views/css/front/wk_payment.css | 16 ++ modules/qlopaypalcommerce/views/img/index.php | 32 +++ .../views/img/paypal-payment-icon.png | Bin 0 -> 2223 bytes .../views/templates/hook/payment.tpl | 193 ++++++++++++------ 4 files changed, 174 insertions(+), 67 deletions(-) create mode 100644 modules/qlopaypalcommerce/views/img/index.php create mode 100644 modules/qlopaypalcommerce/views/img/paypal-payment-icon.png diff --git a/modules/qlopaypalcommerce/views/css/front/wk_payment.css b/modules/qlopaypalcommerce/views/css/front/wk_payment.css index 27256b7ff..8a4bdeff1 100644 --- a/modules/qlopaypalcommerce/views/css/front/wk_payment.css +++ b/modules/qlopaypalcommerce/views/css/front/wk_payment.css @@ -45,3 +45,19 @@ @keyframes rotate { 0% {transform: rotate(0deg);} 100% {transform: rotate(360deg);}} + +p.payment_module a#wkPaypalBtn { + background: url(../../img/paypal-payment-icon.png) 15px 8px no-repeat #fbfbfb; +} + +.pp-btn-block { + text-align: center; + padding: 20px 0; + background: #fbfbfb; + border-radius: 3px; + border: 1px solid #d6d4d4; +} + +#paypal-button-container{ + padding: 0px 15px; +} \ No newline at end of file diff --git a/modules/qlopaypalcommerce/views/img/index.php b/modules/qlopaypalcommerce/views/img/index.php new file mode 100644 index 000000000..409280877 --- /dev/null +++ b/modules/qlopaypalcommerce/views/img/index.php @@ -0,0 +1,32 @@ +5(nvsLvJR*L zU2#VgPf*Zh5giXK5l4Yyz+qKDL>CprK}I}S0jG3!U6JiL;%seAO>I|o|Bm{;_rCYu z_ea}gE59JR&UOU=fGCa>#bT?#{yIBh-x^)!Lu~O!!{gC7qXx}Znh-#!Hl`q;Sg%Y) zViBb}C$k+11^|b}I(a-AFImA;8TB-!9YeF|GcYy)1TVK_C{<|)3Z@{bIs>0HdbyDV z>ePJF8kU4E$p}NVy2xA;5|_JDuF6eQan+>dAz-kDhXv3hs1mg3(+y^xg-`krmxt}` z*ANN(0729Eq+dkE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