Add label to products on instant search page

Hello,

We’re trying to add a label (for example: “fast delivery”) to some products on instant search result page. The problem is for a particular product, some customers can see this label and some don’t.

We know that we could make Algolia to index some additional data and displays it back to the list. But how can we manage to display the label only for some customers.

Thanks.

Hello @ali.ghabeli,

for that I’d create a parameter in algoliaConfig which would indicate if the customer is allowed to see the label or nor.

And then use this parameter in condition in template.

Hi @jan.petr,
Thanks for your answer. I should’ve mention that we’re using Magento 1.9.3.8. Where could I find algoliaConfig file in Magento 1.9 extension?

Hello Ali,

here you go: https://github.com/algolia/algoliasearch-magento/blob/master/app/design/frontend/base/default/template/algoliasearch/internals/configuration.phtml