mse-sv3n/m1-disable-search-by-sku

Disable search by SKU, even when SKU is globally set to searchable.

1.1.0 2018-12-22 20:34 UTC

This package is auto-updated.

Last update: 2024-10-24 10:38:06 UTC


README

Disable search by SKU, even when SKU is globally set to searchable.

Codacy Badge Maintainability Test Coverage

Facts

Description

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.

  1. disable "searchable" in attribute config is no solution
  2. 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.

Requirements

  • PHP >= 5.4.0

Compatibility

  • Magento >= 1.5

Installation Instructions

  • via modman
modman clone https://github.com/sreichel/magento-StackExchange_DisableSearchBySku.git
  • via composer
composer require mse-sv3n/m1-disable-search-by-sku

Uninstallation

  • via modman
modman remove magento-stackexchange-disablesearchbysku
  • via composer
composer remove mse-sv3n/m1-disable-search-by-sku

Usage

  1. get to config section and enable/disable function

Support

If you have any issues with this extension, open an issue on GitHub.

Contribution

Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.

License

OSL - Open Software Licence 3.0