From 4d0729eb474f3d87b81660709a0c091e9de11b1d Mon Sep 17 00:00:00 2001 From: Bogdan Kitura Date: Fri, 30 Jan 2026 09:29:33 +0100 Subject: [PATCH 1/2] 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/2] 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 .= '