Post by abhijitg » Tue Jan 06, 2009 1:05 am

Hi I want show the manufactures name in the products page just before the product descriptions?
How can i do this?

Thanks
Abhijit

Newbie

Posts

Joined
Tue Nov 18, 2008 5:32 am

Post by Qphoria » Tue Jan 06, 2009 3:12 am

EDIT: catalog/controller/product.php
FIND:

Code: Select all

$view->set('images', $image_data);
AFTER, ADD:

Code: Select all

$view->set('manufacturer', $database->getRow("select * from manufacturer where `manufacturer_id` = '" . (int)$product_info['manufacturer_id'] . "'"));

EDIT: catalog/template/default/product.tpl
FIND:

Code: Select all

    <div class="left"><?php echo $heading_title; ?></div>
REPLACE WITH:

Code: Select all

    <div class="left"><?php echo (isset($manufacturer) && $manufacturer != null) ? $manufacturer['name'] . " - " : NULL; ?><?php echo $heading_title; ?></div>

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 5 guests