rohit-raj-verma / pimcore-bulk-search-bundle
Pimcore bundle to search multiple values at once in admin grid listings
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:pimcore-bundle
pkg:composer/rohit-raj-verma/pimcore-bulk-search-bundle
Requires
- php: >=8.1
- pimcore/admin-ui-classic-bundle: ^1.0
- pimcore/pimcore: ^11.0
README
A Pimcore bundle that enables bulk search functionality in the admin grid listings. Search for multiple values at once by entering each value on a separate line.
Features
- Bulk Search Option: Adds a "Bulk Search" option to the column header dropdown menu in Pimcore grid listings
- Multi-Value Search: Enter multiple values (e.g., SKUs, product codes, IDs) each on a separate line
- OR Logic Matching: The grid filters to show records matching ANY of the provided values
- Supported Grids: Works with Object Search, Variants Tab, and Asset Folder listings
- Input Field Support: Available on text/input type columns
Requirements
- Pimcore 11.x
- PHP 8.1 or higher
Installation
Step 1: Install via Composer
composer require rohit-raj-verma/pimcore-bulk-search-bundle
Step 2: Enable the Bundle
Add the bundle to your config/bundles.php:
return [ // ... PimcoreBulkSearchBundle\PimcoreBulkSearchBundle::class => ['all' => true], ];
Step 3: Clear Cache
bin/console cache:clear
Usage
- Navigate to any Data Object listing in Pimcore admin (e.g., Products folder)
- Click the down arrow on any text/input column header to open the column menu
- Select "Bulk Search" from the dropdown options
- In the popup window, enter the values you want to search for, one value per line:
SKU001 SKU002 SKU003 PRD-12345 - Click "Apply" to filter the grid
The grid will now display only records where the selected column matches ANY of the entered values.
Example Use Cases
- Search multiple SKUs: Quickly find products by pasting a list of SKU codes
- Bulk ID lookup: Search for multiple object IDs at once
- Product code validation: Verify which codes exist in the system from a spreadsheet list
- Order item lookup: Find items by multiple reference numbers
How It Works
The bundle patches Pimcore's grid header context menu to add a "Bulk Search" option for input-type columns. When activated:
- A modal window opens with a textarea for entering values
- Each line is parsed as a separate search value
- Empty lines and duplicates are automatically filtered out
- A list-type filter is applied to the grid store with OR logic
- The grid reloads showing matching records
Debugging
To enable debug logging in the browser console:
// Enable debug mode window.localStorage.setItem('pimcoreBulkSearchDebug', '1'); // Disable debug mode window.localStorage.removeItem('pimcoreBulkSearchDebug');
Translations
The bundle includes English translations. To add additional languages, create translation files in translations/admin.{locale}.yml with the following keys:
pimcore_bulk_search_bulk_search_option: 'Bulk Search' pimcore_bulk_search_values: 'Values' pimcore_bulk_search_hint_one_value_per_line: 'Enter one value per line. The listing will match any of the provided values.'
License
This bundle is released under the MIT License.