-
Notifications
You must be signed in to change notification settings - Fork 340
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
The ability to exclude out of stock simple product options from filters for configurable product. #2588
Comments
The default Magento implementation is to not index the attribute options of simples that are out of stock. |
Hello @Hexmage, Which version of Magento you are using? BR, |
@vahonc |
@romainruaud The difference between elasticsuite and default elasticsearch, is that search doesn't index out of stock products (when configured correctly). While suite uses a filter when requesting them from the elasticsearch server and because the simple product stock data is not known by elasticsearch there is no way to filter them properly. |
@romainruaud |
Did it help you solving your issue @Hexmage ? Regards |
@romainruaud |
Ok @Hexmage do you mind if I close ? Regards |
@romainruaud |
I agree this could be helpful, considering the number of times we've had this question asked there. Could you work on a PR for this ? I'd like this setting to be disabled by default (to not mess up with existing install) and being activable through configuration. Regards |
@Hexmage could you show how you were able to fix this issue ? Thanks! |
@romainruaud @joachimVT A plugin on the
|
My customer just notified me of the same issue. Is there a permanent fix for this or a fix in sight? |
We don't have a working solution at the moment, but you can try the workaround suggested by another user. We will try to return to this in our future releases. BR, |
I've implemented this suggested fix with an extra module but I needed to use a deprecated class. |
Guys indeed this is a huge issue. The customer is filtering products to find his shoe in the proper size and he gets 1000 results while in actuality only 10 are available for purchase. It's hindering sales. We just got notified by our client that we need to fix this asap as the telephone calls are now insanely high due to this :( It's pushing customers to purchase by the phone instead of online. I also believe it should be marked as a bug not a feature, because by default we have the option not to show out of stock products in the catalog, so they shouldn't be included in any area like search / layered navigation etc etc. |
@romainruaud I used the workaround as well it seems to mitigate the issue |
I did some research into this as I'm running into the issue as well. It turns out the stock qty is not indexed per simple. The relationship with the simples is stored, among with its attributes. The plugin filters out the out of stock simples from that relation, so prevents them from being indexed. The provided plugin works for non-MSI, but the MSI implementation is the same. That runs through the non-deprecated class. If we come to a solution of how it should work based on requirements and Elasticsuite internal workings I will work out a PR for this. |
Thank you for sharing your observations and research on this issue. Indeed the proposed workaround here works for non-MSI setups but relies on a deprecated class, making it less future-proof. I'm not sure if the MSI implementation is the same as for non-MSI. Because MSI uses a different inventory model that doesn't fully rely on the legacy inventory module. So, I believe this plugin won't be effective for stores that use MSI. Of course I could be wrong. At this point we still don't have a clear vision of the solution, it would be OK for us if this were implemented as a configurable option. You can suggest a PR based on your research and we will see if it suits us. BR, |
Is your feature request related to a problem? Please describe.
We have a pair of shoes. Which are a configurable product. They have 3 sizes 35, 36 and 37.
Size 35 is out of stock the other 2 sizes are in stock.
Currently the configurable product is returned if you filter on size 35, 36 or 37. While we only want it to be returned when you filter for 36 or 37
Describe the solution you'd like
The option to not return a configurable product when you filter on the simple products attribute value when that simple product is out of stock.
Especially for fashion products, which very regularly don't get new stock when the original stock is gone, this option is very much a necessity to prevent disappointment for your customers
The text was updated successfully, but these errors were encountered: