sangkavr
sangkavr

Reputation: 71

How to get translated category name in prestashop

I have this module that doesn't translate category name, so I thought to modify it but I don't know how Prestashop gets the translated name. Any suggestion?

Upvotes: 1

Views: 329

Answers (2)

sangkavr
sangkavr

Reputation: 71

I added second language translation from the drop down but the category is not translated in that module, so I wanted to modify it maybe changing the query but I don't know how to do it. It echos $category.cate.name_category only in one language. Here the screenshot

Upvotes: 1

Arun Vishwakarama
Arun Vishwakarama

Reputation: 166

In PrestaShop if you have multiple languages Then you can add name in all languages by selecting language drop down at right corner of name text field .

Once you added name in each language then when you visit front end and choose language it will display corresponding name to selected language in fronted which you have entered in back office for that language

Upvotes: 1

Related Questions