Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3508 Zobrazení

Hello.

My website main page, the list of categories appears, but their names are messy

How to sort categories name on the website shop page?

Tank you


 


Avatar
Zrušit
Nejlepší odpověď

website categories work based on sequence instead of sort by id or name

Go to backend website configuration > Products >  eCommerce Categories

Drag & Drop Category In list view and arrange it as you want to display it on the website shop

Avatar
Zrušit
Autor Nejlepší odpověď

I answer:

Chage code line in View Product Categories (Odoo V.10):


​<t t-foreach="categories.sorted(key=lambda r: r.name)" t-as="c">


Thank you. Bye


Avatar
Zrušit