Prestashop: Wrong sort price and/or product limit/offset on listing page

Created on 16 Jan 2020  路  9Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
On category page (without ps_facetedsearch), search page, manufacturer page, supplier page, new products page, prices drop page:
When sort by low price, a product of second page (without its reduction) should be on the first page (with its reduction)

Edit by Khouloud

Steps to reproduce the issue:

  1. Disable ps_facetedsearch module
  2. Edit the Product "Hummingbird printed sweater" => specific price = 50%
    image
  1. Go to the FO => Home page
  2. sort by price from low to high
  3. Go to the next page
  4. See error

https://drive.google.com/file/d/1uVy8vx_z1HrEqELEBx-GMKy3odytXClU/view
To Reproduce
Steps to reproduce the behavior:

  1. Add a specific price on a product.
  2. Sort any listing page except bestsellers page by price.
  3. Use pagination.
  4. See error: wrong order
1.7.5.2 1.7.6.2 Bug Discounts FO Fixed Minor PR available Taxes and Prices

All 9 comments

Hi @soulardromain,

I did not manage to reproduce the issue with PS1.7.6.2.
The ps_facetedsearch is disabled
I attached a screen record
https://drive.google.com/file/d/1lQc-9K7AMO6qkz0jOUTk-mkI75REa_Dy/view
Thanks to check & feedback.

Hi,

In your video, the bug is present:
Just before you go to second page, see price of last product ($22.68).
On the second page, the price of the first product is $21.54

@soulardromain, sorry, you are right.
Yes, I have the same issue with PS1.7.5.2 & PS1.7.6.2 but this issue is fixed using the faceted search module as described here: https://github.com/PrestaShop/PrestaShop/issues/10010#issuecomment-467024493

Thanks to check & feedback.

The faceted search is only on category page but this bug is also present in search page, manufacturer page, supplier page, new products page, prices drop page.
And maybe some people don't use the faceted search on category page.

@soulardromain, thanks for your feedback.
Steps to reproduce the issue:

  1. Disable ps_facetedsearch module
  2. Edit the Product "Hummingbird printed sweater" => specific price = 50%
    image
  1. Go to the FO => Home page
  2. sort by price from low to high
  3. Go to the next page
  4. See error

https://drive.google.com/file/d/1uVy8vx_z1HrEqELEBx-GMKy3odytXClU/view
I鈥檒l add this to the debug roadmap so that it鈥檚 fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!

I have created a pull request : #16698

@MatShir @marionf wdyt of this PR ? Should we accept it before reworking the page or after ?

@colinegin the issue is in FO, so not related to the migration of BO product page

Sorry i misread the issue :)
I put it in the 178 kanban then !
Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marionf picture marionf  路  3Comments

nrcjea001 picture nrcjea001  路  3Comments

centoasa picture centoasa  路  3Comments

khouloudbelguith picture khouloudbelguith  路  3Comments

Van-peterson picture Van-peterson  路  3Comments