Expertwebadvisor

  • Magento 2
  • PHP
  • WordPress
  • MySQL
  • SEO
  • Java Script
  • Others
  • Top 10’s

Add Brand or Manufacturer Logo To Product Description Page In Magento

By Expertwebadvisor | Last Updated: April 23, 2013 | In: Magento


By default Magento does not provides the functionality to upload the Brands/Manufacturer Logo. If you want to display the Brands/Manufacturer logo on the Product description page then it is very simple just follow the steps given below:
Add Brand or Manufacturer Logo To Product Description Page In Magento

Step 1. Create Brand Logos

For the Brand/Manufacturer logo make a directory /media/catalog/brands/ and put all your logos in there. Logo images can be jpg, png or gif but all are in the same extension suppose you are using the .png then all the logos will be in the .png extension or you can modify the code but the code provided here is for the single image extension Here In this example .gif images are used, “all of them named as per the entries in the manufacturer attribute with underscores used for spaces.” For instance the corresponding logo for “Sony Ericsson” then image name becomes “Sony_Ericsson.gif”.

Step 2. Update template to show Brand/Manufacturer Logo

Navigate to the template/catalog/product/view.phtml and search for the somewhere where you want the logo to go, for instance after the line:

<?php echo $this->getChildHtml('product_type_data') ?>

Add the Code:

<?php 
	$brand=$_product->getAttributeText('manufacturer');
		echo '<a href="/'.str_replace(' ', '_',$brand).'"><img style="float: right; margin: 2px;" src="/media/catalog/brands/'.str_replace(' ', '_',$brand).'.gif" alt="'.$brand.'"></a>' ;

?>

Make sure that your products have a Brand/Manufacturer assigned through the admin panel. You have done and hopefully you will see the logo…
You can change the styling and other things from here.

Hope this helps, Thanks & Enjoy the Magento Coding.

Tags:Display Brand Logo,Display Brand Logo On Product Description Page,Display Manufacturer Logo,Magento


Related Posts

  • Fatal error call to undefined function mcrypt_module_open() in Magento Fatal error call to undefined function mcrypt_module_open() in Magento
  • Could not determine temp directory, please specify a cache_dir manually problem in Magento Could not determine temp directory, please specify a cache_dir manually problem in Magento
  • Remove List Or Grid Mode As Display Option In Magento Remove List Or Grid Mode As Display Option In Magento
  • Admin Form Fields in Magento Admin Form Fields in Magento
  • Be Social, Share Us Here !!

  • Looking For Something !!

  • Popular Categories !!

    • Magento 2 Guide and Tutorials
    • Home Loan EMI Calculator
    • Car Loan EMI Calculator
    • Personal Loan EMI Calculator
    • Magento Guide & Tutorials
    • PHP Tutorials
    • WordPress Tutorials
    • SEO Tutorials
    • MySQL Guide
    • Opencart Tutorials
    • Linux/Ubuntu Guide
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Facebook
  • Twitter
  • DMCA.com Protection Status

Recent Posts

  • PHP array_​diff_​key Function
  • PHP array_​diff_​assoc Function
  • PHP array_​diff Function
  • PHP array_​count_​values Function
  • PHP array_​combine Function

Welcome to my Blog

Thanks for visiting my Blog, I have started this blog before 8 years ago and sharing my own experience, problem and solutions while working on the different type of projects. Enjoy the reading and don't forget to Facebook likes, Tweets or G+. You can also write me expertwebadvisor@gmail.com
© 2013 - 2025 Powered By
Top