Closed Thread
Results 1 to 8 of 8

Display Manufacturer List in admin page

This is a discussion on Display Manufacturer List in admin page within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Goody day! Can you please give me hints on how to display the manufacturer names under the Catalog menu in ...

      
  1. #1
    New Member isyan is on a distinguished road
    Join Date
    Aug 2010
    Location
    Philippines
    Posts
    13
    Rep Power
    0


    Exclamation Display Manufacturer List in admin page

    Goody day!

    Can you please give me hints on how to display the manufacturer names under the Catalog menu in the admin page?

    I know that I should query for the manufacturer's info then echo them in catalog.php but it doesn't seem to work. Am I missing something important?

    Thanks and more power!

  2. #2
    osCMax Development Team
    pgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond repute pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,405
    Rep Power
    47


    Default Re: Display Manufacturer List in admin page

    Can you explain a bit more about what you are trying to achieve?

    Thanks,
    pgmarshall
    _______________________________

  3. #3
    New Member isyan is on a distinguished road
    Join Date
    Aug 2010
    Location
    Philippines
    Posts
    13
    Rep Power
    0


    Post Re: Display Manufacturer List in admin page

    Basing on the attached image, i would like to display the manufacturers list in the Catalog tab on the backend...

    I know I can hard code it but I want to make it dynamic so that everytime I add a new manufacturer it appears automatically there..

    thanks
    Attached Images Attached Images

  4. #4
    osCMax Development Team
    ridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond repute ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,933
    Rep Power
    34


    Default Re: Display Manufacturer List in admin page

    Why on earth would you want to clutter the Admin. menu with that?
    Very weird. (IMO)
    Hosting plans with installation, configuration, contributions, support and maintenance.

  5. #5
    New Member isyan is on a distinguished road
    Join Date
    Aug 2010
    Location
    Philippines
    Posts
    13
    Rep Power
    0


    Post Re: Display Manufacturer List in admin page

    actually I wanted to link each manufacturer to an information page where I can put informations regarding the manufacturer..

    see attached image
    Attached Images Attached Images
    Last edited by isyan; 09-02-2010 at 03:19 AM.

  6. #6
    osCMax Development Team
    ridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond reputeridexbuilder has a reputation beyond repute ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,933
    Rep Power
    34


    Default Re: Display Manufacturer List in admin page

    Hmm, not the same thing then.
    I think I see what you're trying to achieve...
    How about using the inbuilt Articles feature? Create a Topic called Manufacturers, then an Article for each Manufacturer.
    It's then simple to either put a link in the relevant products' description or use the URL field to point (with a relative link) to an appropriate Article.
    If you were to name the Article identical to the Manufacturer, then it could be reasonably straightforward to automatically link from a product, with a little bit of code, particularly with SEO links enabled
    Hosting plans with installation, configuration, contributions, support and maintenance.

  7. #7
    New Member isyan is on a distinguished road
    Join Date
    Aug 2010
    Location
    Philippines
    Posts
    13
    Rep Power
    0


    Default Re: Display Manufacturer List in admin page

    i tried it but I have some questions..

    Can I display the article names in the backend like in my first post?
    I just want it to be dynamic... Add a manufacturer, then the manufacturer name would be displayed in a list (in the backend).. and each manufacturer names on that list is connected to an editable page... so that i can connect it to the products page...

    Is this possible?

    thanks!
    Last edited by isyan; 09-02-2010 at 08:24 PM.

  8. #8
    osCMax Development Team
    pgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond reputepgmarshall has a reputation beyond repute pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,405
    Rep Power
    47


    Smile Re: Display Manufacturer List in admin page

    isyan,

    I am still confused as to why you want to do this!

    But in principal you would need to add a new box to the admin ...

    Open catalog/admin/includes/column_left.php and add something like

    Code:
    require(DIR_WS_BOXES . 'manufacturers.php');
    Then create a new file called manufacturers.php in the catalog/admin/includes/boxes folder.

    Code:
    <!-- manufacturers //-->
              <tr>
                <td>
    <?php
      $heading = array();
      $contents = array();
    
      $heading[] = array('text'  => 'Manufacturers');
    
    $manufacturers_query_raw = "select m.manufacturers_name, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m, " . TABLE_MANUFACTURERS_INFO . " mi where m.manufacturers_id = mi.manufacturers_id";
    $manufacturers_query = tep_db_query($manufacturers_query_raw);
      while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
      
          $contents[] = array('text' => '<a href="' . $manufacturers['manufacturers_url'] . '" target="_blank">' . $manufacturers['manufacturers_name']) . '</a>');
    
      }
    
      $box = new box;
      echo $box->menuBox($heading, $contents);
    ?>
                </td>
              </tr>
    <!-- manufacturers_eof //-->
    I have no idea if this will work (the theory is correct) as I have not coded this into a store - I have just made it up here ... it may need debugging a bit ...

    It should display a box in the left hand column (which is not hidden) with the names of your manufacturers linked to the URL store in the dbase.

    In regard to creating editable pages with text etc. you would need to add this to the manufacturers database table and then edit manufacturers.php to enable you to edit it ...

    Regards,
    Last edited by pgmarshall; 09-14-2010 at 03:31 AM.
    pgmarshall
    _______________________________

Closed Thread

Similar Threads

  1. New Admin Page, not in File List but is there
    By keeno79 in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 03-18-2010, 03:47 PM
  2. Display Product link on Admin orders page
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-28-2009, 01:00 AM
  3. Admin Page - Product Edit Image Display size?
    By xpman in forum osCmax v2 Customization/Mods
    Replies: 9
    Last Post: 06-04-2008, 10:46 AM
  4. Display Product link on Admin orders page
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-29-2008, 04:11 AM
  5. Which page to edit for manufacturer product display?
    By countingsheep in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 09-25-2006, 11:10 AM

Tags for this Thread

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