Item Searcher for Catalog: DELT – 349
Requirement
Each site uses its own catalog. Using this field custitem_item_brand_label
Our Solution
We have to create a new extension to add the filter for the custom catalog used in the item record.
To achieve this, we need to create a configuration record to save the corresponding data that needs to be used for catalog or Brand Level in the corresponding site.
Add the field in fieldset and facets in website setup and config record.
The files that are used for the search need to be extended. Here we need to extend the corresponding function that creates the URL used for the item search
This function to be extended is getSearchApiUrl
Note: If we extend the function in the profile model, it will affect the whole search functionality. To extend the function site search module
Assumptions
The corresponding field is used in the item record. And the field used in all types of items that are used in the website.