Disable search by SKU, even when SKU is globally set to searchable.
- version: 1.1.0
- extension key: StackExchange_DisableSearchBySku
- extension on GitHub
How to disable search by SKU (for specific store)?
For a specific store i want an remove search results, if search query matches our SKU pattern.
- disable "searchable" in attribute config is no solution
- rewrite core files is not wanted
So, what i need is an event which let me manipulate the search query or product collection for search result page.
- PHP >= 5.4.0
- Magento >= 1.5
- via modman
modman clone https://github.com/sreichel/magento-StackExchange_DisableSearchBySku.git
- via composer
composer require mse-sv3n/m1-disable-search-by-sku
- via modman
modman remove magento-stackexchange-disablesearchbysku
- via composer
composer remove mse-sv3n/m1-disable-search-by-sku
- get to config section and enable/disable function
If you have any issues with this extension, open an issue on GitHub.
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.