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
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 ...
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
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!
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.
are you using MAX or another version of osc?
Clifton Murphy CEO/CTO
Hyperactive Inc.
osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists!
I am using OSCmax. Thank you.
in /templates/content/product_info.tpl.php you will see on roughly line 70,
and change it to thisCode:<td class="pageHeading" valign="top"><?php echo $products_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_nameCode:<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!
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.
Clifton Murphy CEO/CTO
Hyperactive Inc.
osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists!
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
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
Bookmarks