Forums / Addon Sideboxes / Manufacturers Sort Order - Support Thread

Manufacturers Sort Order - Support Thread

Views: 13,359

Results 1 to 8 of 8
28 May 2013, 7:32 PM
#1
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Manufacturers Sort Order - Support Thread

I'll be uploading a mod to the Plugins area today which adds a sort order field to the Admin - Catalog - Manufacturers page.

This came about while working on a site which sold books, and we decided to use the manufacturers function for authors. Since the Manufacturers sidebox is sorted alphabetically by default, we would have had to list the authors like this: Abbey, Michael - Anderson, Lynn - Aston, James. We thought it would be better to specify a sort order for each and list them as Michael Abbey - Lynn Anderson, etc.

You can install this mod in a site with existing manufacturers and change their sort order by editing their admin entries.

The original edited code was provided by edialedarb, and I added some functionality.

I've tested the mod every way I can think of, so please post any problems or comments you have in this thread. The mod only modifies three files, but if you have installed another thread that also modifies any of the three, you'll need to merge the edits into one file.

Thanks

Steve

17 Mar 2014, 3:19 PM
#2
igi2011 avatar

igi2011

New Zenner

Join Date:
Oct 2011
Location:
Kent, UK
Posts:
50
Plugin Contributions:
0

Re: Manufacturers Sort Order - Support Thread

Thanks for this - nice addition and works a treat :)

If like me you're using a Picaflor Azul template with a mega menu you'll also need to edit includes/templates/YOUR_TEMPLATE/common/tpl_mega_menu.php

On or around line 36, change order by manufacturers_nameto order by manufacturers_sort_order

17 Mar 2014, 8:42 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Manufacturers Sort Order - Support Thread

Thanks for the info.

29 Sep 2016, 8:34 PM
#4
faze3 avatar

faze3

New Zenner

Join Date:
Jan 2009
Posts:
54
Plugin Contributions:
0

Re: Manufacturers Sort Order - Support Thread

Does anyone know if this will work ok with 1.5.4?

Thanks.

11 Jan 2017, 3:00 PM
#5
rubbermike avatar

rubbermike

New Zenner

Join Date:
Jun 2007
Location:
Sunny Cornwall, U.K.
Posts:
12
Plugin Contributions:
0

Re: Manufacturers Sort Order - Support Thread

Easy install and very useful mod, just what I need to sort illogical manufacturer names into a logical order.

My problem is that I have approx. 800 existing categories to re-order. Can anyone suggest a way this could be achieved with easypopulate?

Or another method to bulk update rather than one by one.....

Many thanks in advance!

11 Jan 2017, 3:04 PM
#6
faze3 avatar

faze3

New Zenner

Join Date:
Jan 2009
Posts:
54
Plugin Contributions:
0

Re: Manufacturers Sort Order - Support Thread

Works perfectly on v1.5.4 for anyone that's wondering !

11 Jan 2017, 7:02 PM
#7
rubbermike avatar

rubbermike

New Zenner

Join Date:
Jun 2007
Location:
Sunny Cornwall, U.K.
Posts:
12
Plugin Contributions:
0

Re: Manufacturers Sort Order - Support Thread

rubbermike:

Easy install and very useful mod, just what I need to sort illogical manufacturer names into a logical order.

My problem is that I have approx. 800 existing categories to re-order. Can anyone suggest a way this could be achieved with easypopulate?

Or another method to bulk update rather than one by one.....

Many thanks in advance!

Apologies for the typo in my original post, it's 800 existing manufacturers I need to sort, not categories. I do now have a csv file with two columns, manufacturers name and sort order, all I need to do is update my site with this info.

18 Apr 2023, 10:07 PM
#8
earp avatar

earp

New Zenner

Join Date:
Dec 2020
Location:
Ohio
Posts:
30
Plugin Contributions:
0

Re: Manufacturers Sort Order - Support Thread

I just uploaded a new version which works with Zencart version 1.5.8a and PHP 8.1.