Magento Autocomplete Dropdown Adding SKU

Hi,

I have the SKU attribute set as a searchable attribute,

How can I show the product SKU in the auto complete drop down menu?

I’m unable to find a tutorial for displaying custom attributes in the autocomplete dropdown menu.

Thank you,

Ben

Hello Ben,

you’ll have to update the template which displays products in autocomplete menu.
You can learn how to do it in documentation: https://community.algolia.com/magento/doc/m1/customize-autocomplete/

HI Jan,

I’ve completed this now and successfully added the SKU to the autocomplete dropdown.

Thank you,

Ben

I did found a way to fix it. Changes in the file below show how to fix it.

I did get it working with the code below on my : Windows 10 system, so i hope you others can get it working also on your sites.