Create new store in stockists (set it's coordinates, city and country)
Disable the store using stockists module on the backend
Go to stockists page on the frontend and try to find the store by searching it's city
Expected result
The store should not be found (because it's disabled)
Actual result
The store is found
After some digging, I noticed that store successfully disables on the backend, at least status in database changes from 1 to 0. However, it gets all stores (enabled and disabled) in function getStoresForFrontend() in Block\Stockists despite the fact that there is a filter for status: ->addFieldToFilter('status', Stores::STATUS_ENABLED).
Preconditions
Steps to reproduce
Expected result
Actual result
After some digging, I noticed that store successfully disables on the backend, at least
status
in database changes from 1 to 0. However, it gets all stores (enabled and disabled) in functiongetStoresForFrontend()
inBlock\Stockists
despite the fact that there is a filter forstatus
:->addFieldToFilter('status', Stores::STATUS_ENABLED)
.