-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
INVENTORY BUG. Products not appearing at frontend #38570
Comments
Hi @davirs. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @davirs, Thanks for the report and collaboration! We have tried to reproduce the issue in Magento 2.4.6-p3 and the latest development branch i.e. 2.4-develop but the issue is not reproducible for us. We have 640 Configurable Products, and 39360 Simple Products in our instance. We have followed the below steps:
I suggest you please check the error log, you may get some more information on this issue. Also, have you tried the patch provided in this comment? Thanks |
Dear @davirs, We've observed that there haven't been any updates on this issue for quite some time. Therefore, we're assuming it's been resolved and will be closing it. Feel free to open a new ticket or reopen this one if you require further assistance. Regards |
We have exactly the same issue. And after some googling, more people are experiencing this issue. |
@davirs The best I have found is: UPDATE cataloginventory_stock_status INNER JOIN catalog_product_entity ON product_id=catalog_product_entity.entity_id SET stock_status = 1 WHERE type_id = 'configurable'; |
@MLisiecki Thanks for sharing. @LaurensGoedel @engcom-Hotel All the stores I have and all the integrations with different ERPs that I have done have this same problem. These are not isolated cases, all Magento users have this problem. |
Hello @davirs, Actually, we have closed this issue because we are unable to reproduce this issue. Please refer to this #38570 (comment). Let us know if we missed anything. |
@engcom-Hotel Okay, but how can you test if this error occurs during an API integration? Did you connect a real ERP with real data? Registrations, updates, deletions? As I said, this problem is real. I have already connected Magento to 3 different ERPs, and all 3 have the same problem. I couldn't identify what is causing the problem here, because everything works normally. The ERP makes the requests normally, and doesn't give any kind of error. Magento simply doesn't "recognize" the information that was saved. So I reported a real problem that impacts all users of the platform. Whether you can test it is another matter... In my opinion, it is a serious API problem. |
Hello, I have same problem also. For configurable product if I set first time that product is out of stock and again move to stock system will not show product on frontend, show only info on frontend that product is out of stock |
Preconditions and environment
Basically, as products are changed in Magento directly via panel or API, this error occurs in part of the changed products. I couldn't identify any patterns.
Steps to reproduce
1 - Register/update hundreds of configurable products and their aggregated products. In my case, I use API to register, change and set stock, but I was able to simulate directly in the Magento panel.
2 - Some of these registered products are in stock and all their settings are normal like any other product, they are enabled but will not appear on the frontend.
3 - You can clear the indexes, it won't solve it.
4 - You can clear all caches, it won't solve it.
5 - You can make changes within the product and save, it won't solve it.
6 - The bugged product will not appear in the frontend in any way.
Expected result
Any registered or modified product that is in stock and enabled should appear on the frontend normally.
Actual result
Currently, some of the updated products have this problem, they don't appear in the frontend at all!
Additional information
I've read several issues about similar cases, I've tried applying several fixes but none of them helped me solve the problem.
issue examples:
#35724
magento/inventory#3350
I discovered in these cases that I am reporting the product does not appear at all in the frontend, it is possible to "force" this BUG to be circumvented in two ways:
1 - Unlink all products from the configurations within the configurable product, save the product, link all configurations again within the configurable product and save the product.
After completing this step by step process, the product appears instantly on the frontend, without having to make any edits to any of the products.
2 - Update the "control stock" field within the products. Just go to the "Advanced Inventory" option within the product registration, uncheck the "Use Config Settings" box and set "manage stock = yes" and then save the product.
After completing this step by step process, the product appears instantly on the frontend, without having to make any edits to any of the products.
The big problem is the large flow of products! It's impossible to take care of one by one if Magento is working as it should...
All my 4 magento 2.4.6-p3 stores have this same problem in production.
Is there actually a patch or something concrete that solves this problem?
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: