Skip to content
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

Hide out of stock products from any filter #984

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

msaustral
Copy link

Questions Answers
Description? We have add an option on the settings to hide products without stock, this solve the issue PrestaShop/PrestaShop#10018. Also when this option is enable, it disable the Availability filter, if the filter was enabled before activating the option "Hide out of stock", it deletes from table layered_category any availability type register to disable it
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket? PrestaShop/PrestaShop#10018
How to test? On the setting enable the option: "Hide out of stock"

image

@msaustral
Copy link
Author

also solve issue: PrestaShop/PrestaShop#16952

@Hlavtox
Copy link
Contributor

Hlavtox commented Feb 14, 2024

What's the purpose of this filter? You can just click "Available" in Availability filter and it will show you the exact same thing.

@msaustral
Copy link
Author

Hi, for example, on fashion industry, if a client filter T-shirt size M, you do not want products without stock on M to appear on the list.

Some industry do not want to show products without stock on the product list other do, that is why the function is optional.

If someone want to show products without stocks, it works as normal.

@gdoleczek
Copy link

Hi, what is the progress on this review.
It would be useful on our projects as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for review
Development

Successfully merging this pull request may close these issues.

3 participants