Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display Manufacturer instead of Category

Display Manufacturer instead of Category

Locked

Views: 2,707

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
18 Dec 2007, 1:46 AM
#1
phastings avatar

phastings

New Zenner

Join Date:
Jul 2007
Posts:
23
Plugin Contributions:
0

Display Manufacturer instead of Category

I have my categories display horizontally across the top of the page. What I'd like to do is display the manufacturer list instead of the categories but have it look like the category display. Is there anyway to do this? Eventually I'd like to get it so there's a button that would allow you to toggle between Categories and Manufactures.

18 Dec 2007, 12:00 PM
#2
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Display Manufacturer instead of Category

A quick hack using the category tab module as a base-

First extract the two files from the attached zip. tpl_modules_manufacturers_tabs.php goes into includes\templates\YOUR CUSTOM FOLDER\templates\ and manufacturers_tabs.php goes into includes\modules.

Next edit includes\filenames.php- after the line that reads:

define('FILENAME_LISTING_DISPLAY_ORDER', 'listing_display_order.php');

this is on line 174 on mine

add this line:

define('FILENAME_MANUFACTURERS_TABS', 'manufacturers_tabs.php');

You may want to create separate styles for the manufacturer tab- I just went with the same styles used by the category tab to make it easier.

Finally edit your tpl_header.php file in includes\templates\YOUR CUSTOM FOLDER\common. Below the line that reads:

<!--eof-optional categories tabs navigation display-->

copy and paste the following code block:

<!--bof-optional manufacturers tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_manufacturers_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_manufacturers_tabs.php'); ?>
<!--eof-optional manufacturers tabs navigation display-->

You might want to switch the categories tab off- Do this in Admin-> Layout Settings-> Categories-Tabs Menu ON/OFF

10 Feb 2010, 10:53 PM
#3
ahudson90 avatar

ahudson90

New Zenner

Join Date:
Feb 2010
Posts:
1
Plugin Contributions:
0

Re: Display Manufacturer instead of Category

Hi There,

Im trying to do your MOD but cant find your files.

Any help would be great.

Anthony