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
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
Re: Manufacturers Sort Order - Support Thread
Re: Manufacturers Sort Order - Support Thread
Does anyone know if this will work ok with 1.5.4?
Thanks.
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!
Re: Manufacturers Sort Order - Support Thread
Works perfectly on v1.5.4 for anyone that's wondering !
Re: Manufacturers Sort Order - Support Thread
Quote:
Originally Posted by
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.
Re: Manufacturers Sort Order - Support Thread
I just uploaded a new version which works with Zencart version 1.5.8a and PHP 8.1.