-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Price index limited to 100 product #37918
Price index limited to 100 product #37918
Comments
Hello @jexamd , Could you please provide us with more info ?
You don't know how to get this information? Please read the following article: How to create a bug report. Thank you |
Hello @jexamd , Could you explicit the steps to reproduce ? Thanks |
The code in question handles the price indexing of products in a PrestaShop module called How the Loop Works
The loop continues as long as:
The ProblemThe issue arises when the value of
Result
ExampleGiven Products:Product IDs in the database: Current Behavior:
Expected Behavior:
Impact on AJAX CallsThe indexing process runs via AJAX calls, meaning the script is invoked multiple times to process products in chunks. Due to premature termination:
The solution would be to replace: Modifica Obviously, |
This is my solution: PrestaShop/ps_facetedsearch#1124 |
Prerequisites
Describe the bug and add attachments
Price indexing loop only one time in indexPricesUnbreakable.
The second times (and next), we compare $cursor value which is the last productId indexed with the number of products to index ($nbProducts).
File : ps_facetedsearch method IndexPrice.
Expected behavior
Compare $cursor with productId and not product count
Steps to reproduce
Launch full index price with product id > 100 in the first loop/
PrestaShop version(s) where the bug happened
8.1.7
PHP version(s) where the bug happened
7.2
If your bug is related to a module, specify its name and its version
ps_facetedsearch 3.16.1
Your company or customer's name goes here (if applicable).
Hastone & Ten
The text was updated successfully, but these errors were encountered: