Posted On: URL


How to change language from a url link in OpenCart 2

April 23, 2015 - By 

Although the built-in language selection in OpenCart close to perfect, If you need a language switcher extension for any text anywhere on the site, here are simple code to create links that direct users to the store in a specific language.

Firstly, open file in catalog/controller/module/language.php.

And add this code before line 4:

Now you may test your language in URL. If you have English and Spanish on your site and you would use: (for English) or (for Spanish)