How To Display Product Brand Name In Left Column In Product Page?

by Vijayakumar   Last Updated August 13, 2019 18:09 PM

I want to display a product brand name in left column of product page. Can you help me to solve this ?

Thanks advance!!!



Answers 2


Go to local.xml and put this code:

<catalog_product_view>
    <reference name="left">
        <block type="catalog/product_view" name="product.brandname" as="product_brandname" template="catalog/product/brandname.phtml"/>
    </reference>
</catalog_product_view>

Now create new template file brandname.phtml at

\app\design\frontend\YOUR_PACKAGE\YOUR_THEME\template\catalog\product\brandname.phtml

Add this code in brandname.phtml

<?php $_product = $this->getProduct(); ?>
<?php 
    /* YOU CAN GET ANY PRODUCT ATTRIBUTE HERE. */
    echo $_product->getBrand(); 
?>

Note: Change echo $_product->getBrand(); as per your BRAND attribute code

Anil Suthar
Anil Suthar
May 21, 2016 06:20 AM

<?php echo $_product->getAttributeText('brand');?>
Muzammil Rafiq
Muzammil Rafiq
August 13, 2019 17:16 PM

Related Questions