Jump to content

Categories Alphabetical Order For Every Language Choose In The Frontend


Recommended Posts

Hello,
I would ask to the community if it is possible to sort alphabetically categories ( but also subcategories and products ) based on the language set by the frontend .
Let me give an example:
in Italian, the alphabetical order of the following products is :

 

  1. Acqua Potabile
  2. Caffè Espresso e Lungo
  3. Caffè Vending
  4. Cottura a Vapore
  5. Fabbricatori di ghiaccio

in English will be so :

  1. Espresso and long coffee
  2. Ice Makers
  3. Potable water
  4. Steam cooking
  5. Vending coffee

So my question is: is it possible to change the categorie's position to order alphabetically by the language ?
Thanks for the support.
Greetings.
Roberto

Link to comment
Share on other sites

Ok, I've the solution: to sort sub-categories by name for each language, follow this step:

  1. via FTP, connect to your store
  2. go to folder yourstorename/classes/
  3. search Category.php file and open it with notepad (or notepad++,it's better)
  4. go to 658 line and replace 'level_depth' with 'name'
  5. save it
  6. restart Prestashop application

Now you can see that the subcategories' position sorted by name change if you try to switch language (for example: from italian to english).

Thank you.

Regards.

  • Like 3
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...