EmicoEcommerce / Magento2Tweakwise-archived

Magento 2 module for Tweakwise integration
Other
9 stars 25 forks source link

Pagination not working #177

Closed DerFrenk closed 2 years ago

DerFrenk commented 3 years ago

Issue Brief

We have several shops that use emico/tweakwise. In all those sites ajax filtering is disabled. When I add a price filter on a category page, everything works fine. I get a URL like collection/categorie/price/123-456/. Go to the pagination, click on page two, and you'll get url collection/categorie/price/123-456/?p=2 as expected. However, you'll see exactly the same products as on the previous page.

When I downgrade emico/tweakwise to version 3.3.2, everything works fine. From 3.3.3 on it is broken. I traced the issue down to this commit: https://github.com/EmicoEcommerce/Magento2Tweakwise/commit/d3b472540c9fd6e2636ffc5710f334abf067b272. I don't exactly know why, but $request->has('filter_path') is true, so $navigationRequest->setPage($page); won't be executed and the results of p1 will be shown.

All those sites have a 'basic' tweakwise integration without any custom overrides a.f.a.i.k and I can see.

Environment

Steps to reproduce

  1. Install Magento and Tweakwise
  2. Add a price filter or some other filter
  3. Go to page 2

Actual result

  1. On page 2, you see the same results as on page 1

Expected result

gjportegies commented 2 years ago

We're also experiencing this issue on Tweakwise version 3.3.8

Hnto commented 2 years ago

This issue has been fixed and released under version v4.0.1