-
Notifications
You must be signed in to change notification settings - Fork 0
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
Out of stock products appear in Filtered Results #65
Comments
Hi @lfinsaas, I can confirm that it's a bug. We are going to work on the fix, and it will be available in a future release. Regards, |
Any workarounds in the meantime? Would implementing the method outlined in Issue 10up/ElasticPress#2473 (sorting out of stock items to the back) hook into these variable products? |
We apologize for the inconvenience. I just tested again, and everything is working as expected. When "Out of stock visibility" is enabled. WooCommerce only hides the simple product from the shop page; the Variable product remains displayed. The behavior is the same for the ElasticPress filters. |
Uh, OK? Sure, EP aligns with standard Woo behavior — but EP extends Woo functionality, right? Removing product variations w/o stock from the query seems like a pretty basic function that EP should be able to tackle. Are there workarounds in the meantime? If nothing else, can this be added to a feature roadmap? Thank you. |
Hi @lfinsaas, Although it may seem like a pretty basic function, it is not. The query that fetches products matches only parent products and not variations. As the variation availability is not something that belongs directly to the parent product, it is not something we could filter on. To have that working, ElasticPress would need to:
Number 1 isn't easy (more a writing chore than anything) but nr. 2 is a big lift. I'm changing this issue to enhancement now. Any Pull Requests to have that done are welcome. Thanks |
Describe the bug
Hi folks,
Loving the tool so far (very fast!) but we're running into an issue with the filters. They do not appear to be hooking into product variations' stock status. From what I can tell, if the product has the attribute, EP will pull the product into the output — despite the Woo setting to hide out of stock items. This makes it pretty much impossible for customers to navigate the Clearance section of the site, as sizes are pretty spotty.
Any ideas? Do we need to add a filter of some sort?
Thanks!
Steps to Reproduce
Screenshots, screen recording, code snippet
Environment information
Macbook
OS 13.0.1 (22A400)
Chrome 111.0.5563.110
WordPress and ElasticPress information
Up to Date (can provide status again if necessary)
Code of Conduct
The text was updated successfully, but these errors were encountered: