merchant_buddy_available_providers
Filters the list of available search providers, it’s also the way to add your own search provider. Available providers are surfaced in the search settings page.
Parameters
List of providers with their class name.
Default providers
Example
Add a provider to the list of available providers.merchant_buddy_available_entities
Filters the list of available searchable entities, it’s also the way to add your own searchable entity. Available entities are surfaced in the search settings page.
Parameters
List of entities with their class name.
Default entities
Example
Add a new searchable entity.merchant_buddy_{entity}_display_fields
Filters the list of attributes that should be returned in a entity search result. Those are the props used to render the entity in the search results.
Parameters
List of display fields. Return an empty array to return all properties.
Example
merchant_buddy_{entity}_searchable_fields
Filters the list of attributes that should be used to search for an entity. Proviers that support indexing can use those attributes to index an entity using them. By default, all fields are used.
Parameters
List of searchable fields. Return an empty array to use all fields.
Example
merchant_buddy_{entity}_item_data
Filter the item data that will be passed to providers.
Parameters
Item data, depends on the entity.
The item object, depends on the entity.