Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Posts
    23
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default 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:

    HTML Code:
    define('FILENAME_LISTING_DISPLAY_ORDER', 'listing_display_order.php');
    this is on line 174 on mine

    add this line:

    HTML Code:
    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:

    HTML Code:
    <!--eof-optional categories tabs navigation display-->
    copy and paste the following code block:

    HTML Code:
    <!--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
    Last edited by hem; 5 May 2009 at 10:32 AM.
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  3. #3
    Join Date
    Feb 2010
    Posts
    1
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Display manufacturer logos instead of list
    By aself in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 15 Apr 2013, 11:36 PM
  2. Category list display 1 column instead of 3
    By ethanolic in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 27 Apr 2011, 09:03 AM
  3. Manufacturers Logo in Manufacturer Page instead of Category Image
    By jeanjeanitaly in forum General Questions
    Replies: 0
    Last Post: 1 Nov 2010, 11:27 PM
  4. Display manufacturer instead of category on product page
    By justinae in forum General Questions
    Replies: 6
    Last Post: 1 Dec 2007, 06:17 AM
  5. Display Category/Manufacturer Filter Not Working
    By katrobb in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 22 Feb 2007, 01:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg