Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How i can insert all manufacturer logo on home page ? 
 
udnas
Jr. Member
 
Total Posts:  2
Joined:  2013-01-28
 

How i can insert all manufacturers logo on home page , and when i click on a logo to show all the products for that manufacturer ?
I need for this:

car manufacurer logo > al maufacturer car model list > selected model product

Image Attachments
manuflogo.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
Magikvishal
Sr. Member
 
Total Posts:  278
Joined:  2012-06-12
 

Hello below code may be help you…

$manufacturerId 3//here brand or manufacture id
$attributeCode 'manufacturer';
$products Mage::getModel('catalog/product')
->
getCollection()
->
addAttributeToSelect('name')
->
addFieldToFilter($attributeCode$manufacturerId);


$productsName = array();

foreach(
$products as $p){

$productsName[] 
$p->getData('name');

}

print_r
($productsName);
 
Magento Community Magento Community
Magento Community
Magento Community
 
udnas
Jr. Member
 
Total Posts:  2
Joined:  2013-01-28
 

i understand your code but how to use this code where to put that lines?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magikvishal
Sr. Member
 
Total Posts:  278
Joined:  2012-06-12
 

Hello you pass manufacture id to image tag using href & your manufacture details page get this varible i.e

$this->getRequest()->getParam('ID');
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top