Extension - Product - display manufacturer logo

Extension Filter

Search

Categories

License

Version

Currency

Product - display manufacturer logo

Extension Name Product - display manufacturer logo Rating 1 2 3 4 5
License Free Votes 2
Developer sabbath Views 13391
Date Added 10 December 2010 Downloads 413
Date Modified 19 January 2011 Request Support
Report extension
How to display manufacturer logo on Product detail page.
Download Name Compatibility Action
changed files 1.4.9.2 [ Download ]
install info 1.4.9.2 [ Download ]

Steps

step 1) open /catalog/model/catalog/product.php
step 2) find the first(ver. 1.4.9.1) public function getProduct($product_id) and insert into DB query this code
m.image AS manufacturer_logo

like this , p.image, m.image AS manufacturer_logo, m.name AS manufacturer, ....
SAVE and go to step 3

step 3) open /catalog/controller/product/product.php and find code like this
$this->data['model'] = $product_info['model'];
$this->data['manufacturer'] = $product_info['manufacturer'];

and insert new line
$this->data['manufacturer_logo'] = $product_info['manufacturer_logo'];
SAVE and go to step 4


step 4) open product.tpl in your theme for example:
/catalog/view/theme/default/template/product/product.tpl and insert code like this

<?php if ($manufacturer_logo) { ?>
<tr>
<td><img src="<?php echo "/image/".$manufacturer_logo; ?>" width="125"></td>
<td></td>
</tr>
<?php } ?>

That's all. If manufacturer has logo image, this image will be displayed.
If manufacturer has not logo, no image will be displayed.

Tags How, to, display, manufacturer, logo, on, Product, detail, page.

Hosted by Arvixe Web Hosting