Can anyone guide me how to show the "MPN Code" in the front-end along with other product details on the product page in v1.5.4?
http://awesomescreenshot.com/064rtav27
http://awesomescreenshot.com/057rtaq2f
Please Guide. Thanks.
its done. thanks to http://www.facebook.com/trinkal for providing the solution.
go to \catalog\controller\product\product.php
and add this line
$this->data['mpn'] = $product_info['mpn'];
after
$this->data['manufacturer'] = $product_info['manufacturer'];
around 177 line no.
no go to \catalog\view\theme\default\template\product\product.tpl
and add this block of code
<?php if ($mpn) { ?>
<span>MPN: </span><?php echo $mpn; ?><br />
<?php } ?>
after
<?php if ($manufacturer) { ?>
<span><?php echo $text_manufacturer; ?></span> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a><br />
<?php } ?>
near line no. 28
and Voila its DONE
go to \catalog\controller\product\product.php
and add this line
$this->data['mpn'] = $product_info['mpn'];
after
$this->data['manufacturer'] = $product_info['manufacturer'];
around 177 line no.
no go to \catalog\view\theme\default\template\product\product.tpl
and add this block of code
<?php if ($mpn) { ?>
<span>MPN: </span><?php echo $mpn; ?><br />
<?php } ?>
after
<?php if ($manufacturer) { ?>
<span><?php echo $text_manufacturer; ?></span> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a><br />
<?php } ?>
near line no. 28
and Voila its DONE
Who is online
Users browsing this forum: No registered users and 212 guests