Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2007
    Location
    Cheshire
    Posts
    81
    Plugin Contributions
    0

    Default Drop down box array

    Im trying to understand where zencart pulls array data from for the drop down boxes, i.e. manufacturers and suppliers. Is this information being pulled directly from the database ?

    If i look at the code which provides the array:

    <?php echo zen_draw_pull_down_menu('categories_id', zen_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)), '0' ,'', '1'), $sData['categories_id']); ?>

    if i wanted to pull a different array from the database would this just be a case of creating a table like categories and changing the code as follows:

    <?php echo zen_draw_pull_down_menu('newarray_id', zen_get_newarray(array(array('id' => '', 'text' => TEXT_ALL_NEWARRAY)), '0' ,'', '1'), $sData['newarray']); ?>

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

    Default Re: Drop down box array

    What you posted is from the tpl file and these are for display...

    Have a look in /modules/sideboxes at manufacturers.php and manufacturer_info.php as these define and grab the data

  3. #3
    Join Date
    Mar 2007
    Location
    Cheshire
    Posts
    81
    Plugin Contributions
    0

    Default Re: Drop down box array

    thanks for pointing me in the right direction

 

 

Similar Threads

  1. Replies: 3
    Last Post: 19 Apr 2010, 06:22 PM
  2. State drop down box
    By AvieLF in forum General Questions
    Replies: 5
    Last Post: 5 Dec 2007, 01:32 AM
  3. Drop Down Box
    By Peaches128 in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 27 Jul 2007, 02:55 AM
  4. Drop Down Box
    By Peaches128 in forum General Questions
    Replies: 1
    Last Post: 25 Jul 2007, 09:32 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