If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Sort by Manufacturer (etc) on All Product page?

Sort by Manufacturer (etc) on All Product page?

Locked

Started by hockey2112 on 2 Nov 2010, 4:17 PM · Views: 475

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
2 Nov 2010, 4:17 PM
#1
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Post #1 by hockey2112

Is there an existing add-on that allows you to "Sort by Manufacturer" (etc) on the All Products page? If not, any ideas on the difficulty level of doing so? I'm not sure where to start...

Thanks!

2 Nov 2010, 5:30 PM
#2
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Post #2 by hockey2112

hockey2112:

Is there an existing add-on that allows you to "Sort by Manufacturer" (etc) on the All Products page? If not, any ideas on the difficulty level of doing so? I'm not sure where to start...

Thanks!

I thought I may have just figured it out, but ultimately had no luck. Here's what I did:

**I inserted this code: **

<option value="5" <?php echo ($disp_order == '5' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_MANUFACTURERS; ?></option>

Around line 61 of this file: includes/templates/mytemplate/templates/tpl_modules_listing_display_order.php


I also inserted this code:
define('TEXT_INFO_SORT_BY_PRODUCTS_MANUFACTURERS', 'Manufacturer');

Around line 1167 of this file: includes/languages/mytemplate/english.php

It shows up in the "sort by" drop-down, and the products are now grouped by manufacturer, but the manufacturers are not in alpha order. For example, I've got the following ordering happening:

Product 1 - Company C
Product 2 - Company C
Product 3 - Company C
Product 4 - Company A
Product 5 - Company A
Product 6 - Company B
etc...

I have also noticed that sorting by Model number does not bring the expected results either... they are in no particular order, it seems.

Any ideas?