How to sync color codes with Algolia from Shopify in order to show swatches in result page?

I would like to show swatches but I don’t have associated color code on the facets section.
As of now, I have color names but i want to color codes to by sync as well so color codes will return from Algolia and I can manage it on color facets level.

color  = black
color_code= #000


If the list of colors you use is finite, you could have a mapping in your front-end code that transforms the values.

This does require some custom code, but here are some starting pointers:

1 Like

Thanks @Jerska for quick response. This will help.