Jump to content

Ps 1.4.6.2 Layered Navigation: Sort Manufacturers Alphabetically


Recommended Posts

Hi all,

 

I'm using PS 1.4.6.2 and looking for a possibility to have the manufacturers sorted alphabetically in the Layered Navigation block. At the moment, the layered navigation sorts the manufacturers according to their ID (manufacturer id), not alphabetically, which can be confusing and time-consuming for visitors and customers ...

 

Does anyone of you know a way to solve this?

 

Any help is appreciated!

~ Tom

  • Like 1

Share this post


Link to post
Share on other sites
  • 1 month later...

Hi all,

 

I'm using PS 1.4.6.2 and looking for a possibility to have the manufacturers sorted alphabetically in the Layered Navigation block. At the moment, the layered navigation sorts the manufacturers according to their ID (manufacturer id), not alphabetically, which can be confusing and time-consuming for visitors and customers ...

 

Does anyone of you know a way to solve this?

 

Any help is appreciated!

~ Tom

 

Hey, I'm also looking of the way to sort everything alphabetically instead of ID. Did you find out how to do this? Cheers

Share this post


Link to post
Share on other sites
  • 2 months later...

Hey, I'm also looking of the way to sort everything alphabetically instead of ID. Did you find out how to do this? Cheers

 

in: /modules/blocklayered/blocklayered.php

 

replace this line:

$sql_query['group'] = ' GROUP BY p.id_manufacturer';

with:

$sql_query['group'] = ' GROUP BY p.id_manufacturer ORDER BY m.name';

 

prestashop 1.4.7.2 + blocklayered 1.8.5

  • Like 5

Share this post


Link to post
Share on other sites
  • 9 months later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 weeks later...

in: /modules/blocklayered/blocklayered.php

 

replace this line:

$sql_query['group'] = ' GROUP BY p.id_manufacturer';

with:

$sql_query['group'] = ' GROUP BY p.id_manufacturer ORDER BY m.name';

 

prestashop 1.4.7.2 + blocklayered 1.8.5

 

I have a problem, when I do this changes..it works on the store fine, but in back end in module tab it says:

El siguiente módulo(s) no se pudo cargar:
blocklayered (parse error en /modules/blocklayered/blocklayered.php)
blocklayered (la clase que falta en /modules/blocklayered/blocklayered.php)

 

In english:

The following module (s) failed to load:
blocklayered (parse error in / modules / blocklayered / blocklayered.php)
blocklayered (the missing class in / modules / blocklayered / blocklayered.php)

 

What I have to do?

Share this post


Link to post
Share on other sites
  • 2 weeks later...

sorting by alphabet and numeric

 

$sql_query['group'] = 'GROUP BY fv.id_feature_value ORDER BY ABS(fvl.value),fvl.value ASC ';

 

you are welcome

  • Like 2

Share this post


Link to post
Share on other sites

I have a problem, when I do this changes..it works on the store fine, but in back end in module tab it says:

El siguiente módulo(s) no se pudo cargar:
blocklayered (parse error en /modules/blocklayered/blocklayered.php)
blocklayered (la clase que falta en /modules/blocklayered/blocklayered.php)

 

In english:

The following module (s) failed to load:
blocklayered (parse error in / modules / blocklayered / blocklayered.php)
blocklayered (the missing class in / modules / blocklayered / blocklayered.php)

 

What I have to do?

 

best way that's re-install :)

Share this post


Link to post
Share on other sites
  • 6 months later...
  • 1 month later...

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More