Open crodar33 opened 2 years ago
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:
if ($this->_request->getFullActionName() == 'cms_index_index') {
--- 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); }
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: