Skip to Content
Menu
This question has been flagged
2 Replies
3519 Zobrazenia

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šiť
Best Answer

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šiť
Autor Best Answer

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šiť