Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

magento 2.4 index page #97

Open
crodar33 opened this issue Jun 27, 2022 · 0 comments
Open

magento 2.4 index page #97

crodar33 opened this issue Jun 27, 2022 · 0 comments

Comments

@crodar33
Copy link

Hi
trustpilot module version 2.6.564
Had issue with check index page, in this place, on index page, I got cms_page_view instead of cms_index_index
if ($this->_request->getFullActionName() == 'cms_index_index') {
temporary solved it by:

--- a/Block/Trustbox.php
+++ b/Block/Trustbox.php
@@ -65,7 +65,8 @@
                     $trustboxSettings->categoryProductsData = $this->loadCategoryProductInfo($scope, $storeId, $currentCategory);
                 }
             }
-            if ($this->_request->getFullActionName() == 'cms_index_index') {
+            #if ($this->_request->getFullActionName() == 'cms_index_index') {
+            if (in_array('cms_index_index', $this->getLayout()->getUpdate()->getHandles())) {
                 $loadedTrustboxes = array_merge((array)$this->loadPageTrustboxes($settings, 'landing'), (array)$loadedTrustboxes);
             }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant