Results 1 to 3 of 3

Manufacturers Box with List Instead of Drop-Down

This is a discussion on Manufacturers Box with List Instead of Drop-Down within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Has anyone created a manufacturers box that list all the manufacturers just like categories.php does for the categories? I've seen ...

      
  1. #1
    Member ddecjc's Avatar
    Join Date
    Sep 2004
    Posts
    35
    Rep Power
    0


    Default Manufacturers Box with List Instead of Drop-Down

    Has anyone created a manufacturers box that list all the manufacturers just like categories.php does for the categories? I've seen lots of posts of people wanting go the other way and make a drop-down with the categories, but I haven't found any instances of anyone make a box that lists the manufacturers.

    Thanks.

  2. #2
    Member ddecjc's Avatar
    Join Date
    Sep 2004
    Posts
    35
    Rep Power
    0


    Default

    Very interesting....

    As I was digging through the code in manufacturers.php, I found some stuff that looked like exactly what I needed:

    Code:
    if ($number_of_rows <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) {
    // Display a list
    After seeing that, I searched high and low to find out what the default value of MAX_DISPLAY_MANUFACTURERS_IN_A_LIST was, and I found that it is not defined in any of the files. So, I defined it with a value of 50, and, voila, my manufacturers now display as a list instead of a drop-down (since I have less than 50).

    After a little bit of code-tweaking a few lines below that, I was able to get the style of the list items to be exactly like those of the category list!

  3. #3
    Member ddecjc's Avatar
    Join Date
    Sep 2004
    Posts
    35
    Rep Power
    0


    Default

    What do you know? After all that digging and tweaking I did, I've now found that this feature is included in the admin interface. It is in the Configuration > Maximum Values section.

Similar Threads

  1. Manufacturers SQL error
    By Jural in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 10-03-2006, 08:22 AM
  2. help! manufacturers more info pop-up help!
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 02-16-2004, 04:32 PM
  3. Modify Manufacturers Box to only show Manufacturers that are
    By elemar in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 12-09-2003, 01:16 AM
  4. Manufacturers to Publishers? Help Please...
    By elijahweb in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-18-2003, 08:08 AM

Bookmarks

Posting Permissions

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