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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
|
#2
| ||||
| ||||
| 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.
__________________ Clifton Murphy CEO/CTO Hyperactive Inc. osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists! |
|
#3
| |||
| |||
| 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
| ||||
| ||||
| are you using MAX or another version of osc? |
|
#5
| |||
| |||
| I am using OSCmax. Thank you. |
|
#6
| ||||
| ||||
| 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> Code: <td class="pageHeading" valign="top"><?php echo $products_name; ?><?php echo $manufacturers_name; ?></td> I jsut wrapped it in a generic echo tag for simplicity hope this helps .
__________________ Clifton Murphy CEO/CTO Hyperactive Inc. osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists! |
|
#7
| ||||
| ||||
| 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
| |||
| |||
| 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
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Show Manufacturer | glynn | osCommerce 2.2 Modification Help | 0 | 05-11-2005 05:04 PM |
| modify the manufacturer box | BoNzO | osCommerce 2.2 Modification Help | 1 | 03-15-2005 12:29 PM |
| Manufacturer URLs | apexdog | osCMax v1.7 Discussion | 4 | 01-27-2005 10:46 AM |
| How 2 change <title>osCommerce</title> | vannelle | osCommerce 2.2 Modification Help | 3 | 06-08-2004 03:25 PM |
| Removing manufacturer | doyaski | osCommerce 2.2 Modification Help | 3 | 11-07-2003 09:52 PM |