Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2008
    Posts
    9
    Plugin Contributions
    0

    Default Adding products to manufacturers drop down menu

    I have added new products and added the name to the manufacturers list but it does not show in the drop down menu on the web page

  2. #2
    Join Date
    Jan 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding products to manufacturers drop down menu

    I man I have tried to add new manufacturers to the list but they do not show in the menu on the page, if I delete one manufacturer from the list then it is deleted on the menu on the page. So why is this not the case when I add a new manufacturer.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Adding products to manufacturers drop down menu

    If you add a new manufacturer, then you need to APPLY that new name to relevant products.

    You do this in Admin>>>Catalogue>>>Categories/Products... Then you open up a product to edit and choose the manufacturer from the dropdown list.
    20 years a Zencart User

  4. #4
    Join Date
    Jan 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding products to manufacturers drop down menu

    Followed that to the letter.....what can I say but excellent.
    Thanx
    Keith

  5. #5
    Join Date
    Apr 2007
    Posts
    649
    Plugin Contributions
    0

    Default Re: Adding products to manufacturers drop down menu

    I have uploaded the manufacturers drop down menu and my shop by brand link does not take me anywhere. Can someone tell me what I need to change, or if I missed something somewhere?
    Thanks!

  6. #6
    Join Date
    Apr 2007
    Posts
    649
    Plugin Contributions
    0

    Default Re: Adding products to manufacturers drop down menu

    Okay, I have gotten a little farther. I now get the drop down but it is all screwed up. I know that this is probably an easy fix, but I have tried to move code, take out code, and I am getting no where. Can anyone tell me what I can do to fix it? You can see the what happens at my test site www.mommyandbabyessentials.com/test

    here is my code from my tpl_drop_menu.php file
    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: tpl_drop_menu.php  2005/06/15 15:39:05 DrByte Exp $
    //
    ?>
    <!-- menu area -->
    <div id="dropMenuWrapper">
      <div id="dropMenu">
        <ul class="level1">
          <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
            <ul class="level2">
              <li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_NEW); ?>"><?php echo HEADER_TITLE_NEW_PRODUCTS; ?></a></li>
              <li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo HEADER_TITLE_ALL_PRODUCTS; ?></a></li>
              <li><a href="<?php echo zen_href_link(FILENAME_SPECIALS); ?>"><?php echo HEADER_TITLE_SPECIALS; ?></a></li>
              <li><a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH); ?>"><?php echo HEADER_TITLE_SEARCH; ?></a></li>
            </ul>
      <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" style="padding-left:5px;"><?php echo "Shop By Brand"; ?></a>              
                    <?
     $show_manufacturers= true;
    // for large lists of manufacturers uncomment this section
    /*
      if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or  ($request_type == 'SSL')) {
        $show_manufacturers= false;
      } else {
        $show_manufacturers= true;
      }
    */
    // Set to true to display manufacturers images in place of names
    define('DISPLAY_MANUFACTURERS_IMAGES',false);
    if ($show_manufacturers) {
    // only check products if requested - this may slow down the processing of the manufacturers sidebox
      if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
        $manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
                                from " . TABLE_MANUFACTURERS . " m
                                left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id
                                where m.manufacturers_id = p.manufacturers_id and p.products_status= 1
                                order by manufacturers_name";
      } else {
        $manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
                                from " . TABLE_MANUFACTURERS . " m
                                order by manufacturers_name";
      }
      $manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);
      if ($manufacturer_sidebox->RecordCount()>0) {
        $number_of_rows = $manufacturer_sidebox->RecordCount()+1;
    // Display a list
        $manufacturer_sidebox_array = array();
    //  kuroi: commented out to avoid starting list with text scrolling list entries such as "reset" and "please select"
    //    if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '' ) {
    //      $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
    //    } else {
    //      $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
    //    }
        while (!$manufacturer_sidebox->EOF) {
          $manufacturer_sidebox_name = ((strlen($manufacturer_sidebox->fields['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name']);
       $manufacturer_sidebox_image = $manufacturer_sidebox->fields['manufacturers_image'];
          $manufacturer_sidebox_array[] =
      array('id' => $manufacturer_sidebox->fields['manufacturers_id'],
         'text' => DISPLAY_MANUFACTURERS_IMAGES ?
        zen_image(DIR_WS_IMAGES . $manufacturer_sidebox_image, $manufacturer_sidebox_name) :
        $manufacturer_sidebox_name);
          $manufacturer_sidebox->MoveNext();
        }
          
      }
    } // $show_manufacturers
        for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
          $content = '';
       $content .= '<li ><a class="hide" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
          $content .= $manufacturer_sidebox_array[$i]['text'];
          $content .= '</a></li>' . "\n";
          echo $content;
     }
      ?> 
     <ul >
                 
          </li>
          <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_INFORMATION; ?></a>
            <ul class="level2">
              <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo HEADER_TITLE_SHIPPING_INFO; ?></a></li>
             
              
              <li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>"><?php echo HEADER_TITLE_ABOUT_US; ?></a></li>
       <?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?><li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_DISCOUNT_COUPON; ?></a></li>
       <?php } ?>
            </ul>
            </li>
          <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_ARTICLES; ?></a>
            <ul class="level2">
              
              
              
       <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
            </ul>
          </li>
          <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
          <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
            <ul class="level2">
    <?php if ($_SESSION['customer_id']) { ?>
              <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
              <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
              <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'); ?>"><?php echo HEADER_TITLE_NEWSLETTERS; ?></a></li><?php } else { ?>
              <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
              <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
    <?php } ?>
            </ul>
          </li>
    
        </ul>
      </div>
    </div>
    Thanks for any help!!!

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding products to manufacturers drop down menu

    Have you read and accomplished what schoolboy pointed out in post #3 here?

    You have to associate each product with a Mfg to have this work
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Apr 2007
    Posts
    649
    Plugin Contributions
    0

    Default Re: Adding products to manufacturers drop down menu

    Yes, I have all of my manufacturers assigned to a product.
    I had accidently left out code originally. So now I can get the manufacturers to show but there is not a background color to them and they do not drop down properly. (2-3 down and then they go across the page, including across the drop down menu)

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding products to manufacturers drop down menu

    css for this calls /test/includes/templates/future_zen/images/submenu.gif -

    but that image is not there - did you install all of this?
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Apr 2007
    Posts
    649
    Plugin Contributions
    0

    Default Re: Adding products to manufacturers drop down menu

    I can not find any images included in the download, and in the css that section is commented out.

    All of my files are the same, with the exception of some color changes and I took out the categories tab.

 

 

Similar Threads

  1. Adding a drop down menu
    By Fridge in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Nov 2009, 11:53 PM
  2. Horizontal Flyout Menu over the top Filter By: Manufacturers Drop Down
    By websightdesign in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Jun 2009, 12:26 PM

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