multimedia_siner Posted February 11, 2016 Share Posted February 11, 2016 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 : Acqua Potabile Caffè Espresso e Lungo Caffè Vending Cottura a Vapore Fabbricatori di ghiaccio in English will be so : Espresso and long coffee Ice Makers Potable water Steam cooking 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 More sharing options...
multimedia_siner Posted February 11, 2016 Author Share Posted February 11, 2016 Ok, I've the solution: to sort sub-categories by name for each language, follow this step: via FTP, connect to your store go to folder yourstorename/classes/ search Category.php file and open it with notepad (or notepad++,it's better) go to 658 line and replace 'level_depth' with 'name' save it 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. 3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now