osCmax v2.5 User Manual
Results 1 to 9 of 9

Getting the Manufacturer name in the title

This is a discussion on Getting the Manufacturer name in the title within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Hello Folks, I need to get the manufacturer name in the title with the product name. Does anyone know what ...

      
  1. #1
    lem
    lem is offline
    Member
    Join Date
    Nov 2004
    Location
    CDA, ID
    Posts
    40
    Rep Power
    0


    Default Getting the Manufacturer name in the title

    Hello Folks,
    I need to get the manufacturer name in the title with the product name. Does anyone know what files I would need to look at to do this? Thanks

  2. #2
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    9


    Default

    in what title ? the webpage meta title? the category heading title? the product_info.php title? give me a url and position on page to take a look at and ill help ya out.

  3. #3
    lem
    lem is offline
    Member
    Join Date
    Nov 2004
    Location
    CDA, ID
    Posts
    40
    Rep Power
    0


    Default The Title

    I'm sorry, the product title. Good point...

    http://www.truckracingparts.com/cata...products_id/45

    It lists the product name, and model number. I want the manufacturer name in title as well. Thank you very much.

  4. #4
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    9


    Default

    are you using MAX or another version of osc?

  5. #5
    lem
    lem is offline
    Member
    Join Date
    Nov 2004
    Location
    CDA, ID
    Posts
    40
    Rep Power
    0


    Default Title

    I am using OSCmax. Thank you.

  6. #6
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    9


    Default

    in /templates/content/product_info.tpl.php you will see on roughly line 70,
    Code:
    <td class="pageHeading" valign="top"><?php echo $products_name;</td>
    and change it to this
    Code:
    <td class="pageHeading" valign="top"><?php echo $products_name; ?><?php echo $manufacturers_name; ?></td>
    you can move it and clean it up and format it to look nicer or place it anywhere on the page you like. the variable you want to call is $manufacturers_name

    I jsut wrapped it in a generic echo tag for simplicity

    hope this helps .

  7. #7
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    9


    Default

    this variable is already defined in application_top.php which is why all you need to do is find out the variable name and place it anywhere you like, its part of the globals on all pages which have a "require(application_top.php)" statement in them.

  8. #8
    lem
    lem is offline
    Member
    Join Date
    Nov 2004
    Location
    CDA, ID
    Posts
    40
    Rep Power
    0


    Default

    Hmmmm, it appears as though it changes the Product Heading. I was thinking the page Title. Also, when I made this change to the product heading, it gives the wrong manufacturer. It appears that on all the products, it gives the last manufacturer of my manufacturer list. does that make sense?

    For instance, http://www.truckracingparts.com/cata...products_id/78 . It should say bullydog at the end, but instead it says Westin. (Depending on when you look, I might have this changed.) What do you think? Thanks

  9. #9
    lem
    lem is offline
    Member
    Join Date
    Nov 2004
    Location
    CDA, ID
    Posts
    40
    Rep Power
    0


    Default

    I apologize if I didnt give enough information at the begginning. I believe the file we are dealing with is /includes/meta_tags.php. I just cannot figure out how to get the manufacturer name in there. I'm guessing it wants me to make a database query. But I dont really know how, or what to call out. Any help would be appreciated. Thanks

Similar Threads

  1. Show Manufacturer
    By glynn in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 05-11-2005, 05:04 PM
  2. modify the manufacturer box
    By BoNzO in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-15-2005, 12:29 PM
  3. Manufacturer URLs
    By apexdog in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 01-27-2005, 10:46 AM
  4. How 2 change <title>osCommerce</title>
    By vannelle in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 06-08-2004, 03:25 PM
  5. Removing manufacturer
    By doyaski in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 11-07-2003, 09:52 PM

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
  •