Jump to content

"Change Shop Name" - Change Shop Name By Language


MohamedAl-Almany

Recommended Posts

I am setting up my store on prestashop 1.6 but i have an problem with the name.

 

I have 2 languages - english & arabic.

 

The Problem is that i want to have the name in the arabic language/version with arabic and in the english/version with english.

 

Thanks 4 Help in advance.

Link to comment
Share on other sites

Depending on where, you could force prestashop to show different names according to language.

But the shop name is referenced at many places and sometimes stored as a constant within php.

 

The shop name is stored in the ps_configuration table with key PS_SHOP_NAME. Usually it is fetched by the following possible commands within php:

 

Configuration::getMultiple  (if multiple config variables are fetched)

or

Configuration::get('PS_SHOP_NAME')

 

It would be possible to write an own function for example within ./classes/Tools.php like GetShopNameByLang and there check the language context and return the appropriate value. However with a quick search I found 78 references to PS_SHOP_NAME. So it could take time to find all places where you had to change to code.

Edited by Scully (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...