From 4d0729eb474f3d87b81660709a0c091e9de11b1d Mon Sep 17 00:00:00 2001 From: Bogdan Kitura Date: Fri, 30 Jan 2026 09:29:33 +0100 Subject: [PATCH 1/6] 14720-add-review-button-in-admin-panel [in progress] --- Block/Adminhtml/System/Config/Form/Info.php | 126 +++++++++++--------- 1 file changed, 71 insertions(+), 55 deletions(-) diff --git a/Block/Adminhtml/System/Config/Form/Info.php b/Block/Adminhtml/System/Config/Form/Info.php index 29b9141..61eb8f0 100755 --- a/Block/Adminhtml/System/Config/Form/Info.php +++ b/Block/Adminhtml/System/Config/Form/Info.php @@ -199,60 +199,80 @@ public function render(AbstractElement $element) ' : '') . ' + + + + + + + Leave a Review + +
'; - if ($canUpgradeToMaxPlan) { - $escapedUrl = $this->escapeHtml($moduleUrl . '/pricing' . $utmParam); - $html .= ''; - } + if ($canUpgradeToMaxPlan) { + $escapedUrl = $this->escapeHtml($moduleUrl . '/pricing' . $utmParam); + $html .= ''; + } - if ($newVersionAvailable) { - $partUpdateProductUrl = 'fan.com/downloadable/customer/products'; - $html .= ''; - } - $html .= '
- '; - if ($newVersionAvailable) { - $html .= '
- Version v' . $this->escapeHtml($latestVersion) . ' is available -
'; - } + if ($newVersionAvailable) { + $partUpdateProductUrl = 'fan.com/downloadable/customer/products'; + $html .= ''; + } + $html .= '
+ '; + if ($newVersionAvailable) { + $html .= '
+ Version v' . $this->escapeHtml($latestVersion) . ' is available +
'; + } + + $html .= '
+ +
'; - $fontPath = "Magefan_Community::fonts/variable/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2"; - $html .= ' + $fontPath = "Magefan_Community::fonts/variable/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2"; + $html .= ' + + '; From 47e4c7f88fa1e1e7ab0b3491a3e177ed8da1cb19 Mon Sep 17 00:00:00 2001 From: "ivan.hrytsai" Date: Fri, 30 Jan 2026 15:34:48 +0200 Subject: [PATCH 2/6] 14720-add-review-button-in-admin-panel --- Block/Adminhtml/System/Config/Form/Info.php | 27 ++++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/Block/Adminhtml/System/Config/Form/Info.php b/Block/Adminhtml/System/Config/Form/Info.php index 61eb8f0..1d70dd6 100755 --- a/Block/Adminhtml/System/Config/Form/Info.php +++ b/Block/Adminhtml/System/Config/Form/Info.php @@ -88,12 +88,13 @@ public function render(AbstractElement $element) break; } } - + $moduleReviewUrl = false; if ($latestVersion = $moduleInfo->getVersion()) { $fullModuleTitle = $moduleInfo->getProductName(); $moduleUrl = $moduleInfo->getProductUrl(); $moduleImage = $moduleInfo->getProductImage(); + $moduleReviewUrl = $moduleInfo->getReviewUrl(); $newVersionAvailable = version_compare($latestVersion, $currentVersion) > 0; $moduleTitle = str_replace(['Magento 2', 'Magento'], ['', ''], (string)$fullModuleTitle); @@ -198,16 +199,17 @@ public function render(AbstractElement $element) User Guide - ' : '') . ' + ' : '') . (($canUpgradeToMaxPlan || $newVersionAvailable) && $moduleReviewUrl ?' - Leave a Review + Leave a Review + ' : ' ') . ' @@ -259,15 +261,16 @@ class="action-update" Version v' . $this->escapeHtml($latestVersion) . ' is available '; } - - $html .= '
- -
'; + if (!$canUpgradeToMaxPlan && !$newVersionAvailable && $moduleReviewUrl) { + $html .= '
+ +
'; + } $fontPath = "Magefan_Community::fonts/variable/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2"; $html .= ' From 89eff1735f02e9b565cdbffedcefbd7127ea004d Mon Sep 17 00:00:00 2001 From: "ivan.hrytsai" Date: Fri, 20 Feb 2026 16:19:49 +0200 Subject: [PATCH 3/6] 14720-add-review-button-in-admin-panel [improvements] --- Block/Adminhtml/System/Config/Form/Info.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Block/Adminhtml/System/Config/Form/Info.php b/Block/Adminhtml/System/Config/Form/Info.php index 1d70dd6..45e3c60 100755 --- a/Block/Adminhtml/System/Config/Form/Info.php +++ b/Block/Adminhtml/System/Config/Form/Info.php @@ -118,6 +118,8 @@ public function render(AbstractElement $element) $canUpgradeToMaxPlan = false; } + $newVersionAvailable = $canUpgradeToMaxPlan = true; + $moduleImage = $moduleImage ? $this->escapeHtml($moduleImage) : ('https://mag' . 'ef' . 'an.com/media/magefan-logo-2025.png'); @@ -206,7 +208,7 @@ public function render(AbstractElement $element) - Leave a Review + Leave a Review ' : ' ') . ' @@ -232,12 +234,12 @@ class="action-upgrade" $partUpdateProductUrl = 'fan.com/downloadable/customer/products'; $html .= ' '; } From 8afdf4955ba8c5afc23fbbb2017b24353b00d06c Mon Sep 17 00:00:00 2001 From: "ivan.hrytsai" Date: Fri, 20 Feb 2026 16:20:40 +0200 Subject: [PATCH 4/6] 14720-add-review-button-in-admin-panel [improvements] --- Block/Adminhtml/System/Config/Form/Info.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/Block/Adminhtml/System/Config/Form/Info.php b/Block/Adminhtml/System/Config/Form/Info.php index 45e3c60..a696b21 100755 --- a/Block/Adminhtml/System/Config/Form/Info.php +++ b/Block/Adminhtml/System/Config/Form/Info.php @@ -118,8 +118,6 @@ public function render(AbstractElement $element) $canUpgradeToMaxPlan = false; } - $newVersionAvailable = $canUpgradeToMaxPlan = true; - $moduleImage = $moduleImage ? $this->escapeHtml($moduleImage) : ('https://mag' . 'ef' . 'an.com/media/magefan-logo-2025.png'); From 8e01617edb20824c9781eb4bd7860279f85e88a2 Mon Sep 17 00:00:00 2001 From: "ivan.hrytsai" Date: Mon, 23 Feb 2026 17:50:17 +0200 Subject: [PATCH 5/6] 14720-add-review-button-in-admin-panel --- Block/Adminhtml/System/Config/Form/Info.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Block/Adminhtml/System/Config/Form/Info.php b/Block/Adminhtml/System/Config/Form/Info.php index a696b21..43cb6a2 100755 --- a/Block/Adminhtml/System/Config/Form/Info.php +++ b/Block/Adminhtml/System/Config/Form/Info.php @@ -206,7 +206,7 @@ public function render(AbstractElement $element) - Leave a Review + Leave a Review ' : ' ') . ' @@ -263,7 +263,7 @@ class="action-update" } if (!$canUpgradeToMaxPlan && !$newVersionAvailable && $moduleReviewUrl) { $html .= '
-