Shopify multi-language is not supported by our extension at the moment.
To use multi language, you would have to store the other languages attributes as metafields or named tags on your records and customize your Algolia implementation for the products attributes to be displayed in the customer language.
Whilst we do not have a complete guide for this that we can share we can give you the general steps that your development team can use as a starting point for building your own solution. Please note that this will require some significant development work from your team:
Adding the metafield or named tag:
Although you cannot create metafields with our own extension, you can see how to use your created metafields with Algolia here: https://www.algolia.com/doc/integration/shopify/sending-and-managing-data/metafields/?client=ruby
We have a guide for adding Named tags here: https://www.algolia.com/doc/integration/shopify/sending-and-managing-data/named-tags/?client=ruby
Using the metafield or named tag in your front end
Then your team would need to modify your front end so that the appropriate metafield or tag is displayed for the client's language
We have a guide for modifying the front end here: https://www.algolia.com/doc/integration/shopify/advanced-customization/customizing-instant-search/?client=ruby
You would want to change your product template: https://shopify.algolia.com/shopify/assets/javascripts/v4/algolia_instant_search_product.hogan.liquid
to use the metafield or named tag attributes for the language you want to show in the results.
Last reviewed 20-05-22.
Comments
0 comments
Article is closed for comments.