trustpilot / plugin-magento2

Magento 2 plugin for sending invitation data to Trustpilot
MIT License
10 stars 27 forks source link

Category product sorting/paging problem after upgrade to 2.4.0 or 2.4.1 #82

Closed pfcgroot closed 3 years ago

pfcgroot commented 3 years ago

After upgrading magento from 2.3.6 to 2.4.0 the product paging and sorting is not working properly anymore with version 2.6.555. Category pages just show all products in semi-random order and sorting doesn't work anymore as soon as a trustbox is placed anywhere on the category page. This issue is very similar to a previous issue (#66). Removing the trustbox solves the problem.

Exactly the same issue happens when upgrading to 2.4.1.

kabalas2 commented 3 years ago

Hi, I had the same issue, it is because block trustpilot.head.trustbox is loading in the head. after changing loading in the footer it starts work. vendor/trustpilot/module-reviews/Block/Trustbox.php 134: $products = $block->getLoadedProductCollection();

just product collection should be load later. after head.

arunas-stonis commented 3 years ago

It was fixed in version 2.6.560