PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

[Solved] Controlling the order in which categories are displayed in the block?

5 replies to this topic
#1
Mogul

    PrestaShop Apprentice

  • Members
  • PipPip
  • 43 posts
Hi,

The categories block displays the category names in alphabetical order. Is there any way to over ride it and dictate an alternative order in which I want them to appear?
Read my blog at http://www.AdamPatel.com

#2
Patric Codron

    PrestaShop Superstar

  • PrestaTeam
  • 9152 posts
Yes, there is, please search on the forum. It has been told lots of times.
Thanks.
Patric CodronCommunity Manager | Manager de CommunautéPrestaShop

Posted Image Merci de respecter les règles du forum PrestaShop.com :)
Posted Image Please comply with the PrestaShop.com forum rules :)

#3
Mogul

    PrestaShop Apprentice

  • Members
  • PipPip
  • 43 posts
Hi,

I've searched. The only method I can find is to number them in the title. This is not ideal. Can they be ordered by category ID?
Read my blog at http://www.AdamPatel.com

#4
Patric Codron

    PrestaShop Superstar

  • PrestaTeam
  • 9152 posts

From 1246656911:

The only method I can find is to number them in the title.


Of course, with this method, the prefix number is removed when the category name is displayed.

I don't know any tips to sort according to the ID.
Patric CodronCommunity Manager | Manager de CommunautéPrestaShop

Posted Image Merci de respecter les règles du forum PrestaShop.com :)
Posted Image Please comply with the PrestaShop.com forum rules :)

#5
Mogul

    PrestaShop Apprentice

  • Members
  • PipPip
  • 43 posts
Forgive me. I thought the numbers would appear in the category titles. This is perfect, thanks!
Read my blog at http://www.AdamPatel.com

#6
Patric Codron

    PrestaShop Superstar

  • PrestaTeam
  • 9152 posts
No, if this is exactly entered like this (a '.' and no space) :
01.Categ1
02.Categ2

01. and 02. will be removed.

In addition, you can also do this :
10.CatC
20.CatA
30.CatB

So that you'll be able to insert future other categories (if needed).
Patric CodronCommunity Manager | Manager de CommunautéPrestaShop

Posted Image Merci de respecter les règles du forum PrestaShop.com :)
Posted Image Please comply with the PrestaShop.com forum rules :)