Skip to content

Wrong count on category page with out-of-stock products #7619

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

Closed
thdoan opened this issue Nov 30, 2016 · 9 comments
Closed

Wrong count on category page with out-of-stock products #7619

thdoan opened this issue Nov 30, 2016 · 9 comments
Labels
bug report Component: Catalog Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed

Comments

@thdoan
Copy link

thdoan commented Nov 30, 2016

Preconditions

  1. Magento EE 2.1.2
  2. PHP 5.6.26
  3. MySQL 5.0.11

Steps to reproduce

  1. Set a product as out-of-stock
  2. Go to a category page where that product usually shows up

Expected result

  1. The result count should be equal to the number of products listed in that category.

Actual result

  1. The result count (Magento_Catalog/templates/product/list/toolbar/amount.phtml) is one larger than the true count -- it counts the out-of-stock product even though this product is not listed.
@thdoan thdoan changed the title Wrong count on category page when there are out-of-stock products Wrong count on category page with out-of-stock products Nov 30, 2016
@shuaiZend
Copy link

#5670

@twistedatrocity
Copy link

Same issue but with disabled products. If disabled product is in sub category, it is counted in the shop by sub category listing (all non anchor) when viewing parent category. Temporary workaround for me is to remove all disabled products from all categories.

@maderlock
Copy link

Seeing this in 2.1.3. It's causing additional pages to be shown which then say that no products can be found in them.

@1408sheva
Copy link
Contributor

@thdoan Is this issue still actual? We were not able to reproduce it on ver. 2.1.7.

@olekluk
Copy link

olekluk commented Jul 7, 2017

Magento 2.1.7 CE the issue is still exist.

@maderlock
Copy link

This is marked as needing update. What more do you need to be able to reproduce this on 2.1.7? Have you tried with out of stock and disabled products?

The situation where we see this most is when there is one page worth of products visible but an out of stock product in the category - this will then display two pages, but clicking on the second page shows an empty page. This is confusing customers.

@1408sheva
Copy link
Contributor

Please add screenshots of the problem.

@magento-engcom-team magento-engcom-team added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed and removed Progress: needs update labels Sep 18, 2017
@magento-engcom-team
Copy link
Contributor

@thdoan, thank you for your report.
We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue.
We tested the issue on 2.1.9

@magento-engcom-team magento-engcom-team added the Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch label Sep 21, 2017
@maderlock
Copy link

Can anyone confirm if this is fixed in 2.1.9?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Catalog Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed
Projects
None yet
Development

No branches or pull requests

8 participants