Try the Demo

Magento Forum

   
shop by manufacturer
 
J.S. Coolen
Sr. Member
 
Total Posts:  86
Joined:  2009-08-20
Den Haag, Nederland
 

I making a new way to shop by manufacturers.

The mod is an altered version of: List Manufacturers Attribute!!

With this mod you can add images.

Images must be the same name as the manufacturer and must end with .jpg

manufacturer.phtml:
/app/design/frontend/default/default/template/catalog/product/

manufacturer.php
/app/code/core/Mage/Catalog/Block/Product/

images:
/media/catalog/brands/

you must alter lines: 30/40/50/60/70 to your own dir.:

<?php if(file_exists(\'/home/jcsl/public_html/webshop/media/catalog/brands/\'.$manufacturer[\'label\'].\'.jpg\')) {echo \'<img src=\"/webshop/media/catalog/brands/\'.$manufacturer[\'label\'].\'.jpg\" alt=\"\'.$manufacturer[\'label\'].\'\">\';else echo \'\'.$manufacturer[\'label\'].\'\'} ?></a><br/>

example:
http://www.jcsl.nl/webshop/fabrikanten

Magento version check:
1.3.2.4

Version changes:

1.2:
Images are no longer required, when there is no image a link will apaire.
1.3
In this update there is a way to choose the layout either equil aranged in 6 colloms or displayed in alphabetic order.

File Attachments
manufacturer 1.3.zip  (File Size: 5KB - Downloads: 164)
 
Magento Community Magento Community
Magento Community
Magento Community
 
J.S. Coolen
Sr. Member
 
Total Posts:  86
Joined:  2009-08-20
Den Haag, Nederland
 

Version 1.3 now available.

In this update there is a way to choose the layout either equil aranged in 6 colloms or displayed in alphabetic order.

 
Magento Community Magento Community
Magento Community
Magento Community
 
gautham
Jr. Member
 
Total Posts:  3
Joined:  2010-05-04
 

Hey buddy,

Thanks for the awesome stuff, works great, except I encountered an issue when dealing with brands that start with a lower case letter. Fixed it by replacing lines 31/40/49/58/67 with a simple strtoupper:

<?php $firstletter=strtoupper(substr($manufacturer[\'label\'],0,1)) ?>

Cheers,
G Nook

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mage Guru
Sr. Member
 
Avatar
Total Posts:  79
Joined:  2009-07-07
 

Has anyone for the list attributes working in magento v1.4? thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
FMEExtensions
Guru
 
Avatar
Total Posts:  689
Joined:  2009-08-07
 

Use the Shop By Manufacturer to take care of this without any coding. we’ve done all the hard work for you and the cost is amazing as well.

Checkout out the reviews on Magento Connect:
https://www.magentocommerce.com/magento-connect/shop-by-manufacturers.html

 Signature 

One Step Checkout - $85| Ajax Add to Cart - $79 | Background Images - $59| Additional Checkout Attributes - $89 Square Foot Pricing Calculator - $119 Product Quick View - $79 Featured Product Layout - $79

 
Magento Community Magento Community
Magento Community
Magento Community
 
Amasty
Mentor
 
Avatar
Total Posts:  3001
Joined:  2009-11-10
 

Hi!

Recommend to try \’shop by brands\’ functionality with Improved Navigation Extension .
It allows to create brand pages(http://improved-navigation.amasty.com/amd.html). Also with it you can make lists of all brands in nice alphabetically ordered blocks, create the “featured brands” block and have nice short urls for brand pages.

Discover live demo here http://improved-navigation.amasty.com/
See the user guide here http://amasty.com/improved-navigation.html

Image Attachments
imp nav- brands.pngimp nav2.PNGimp nav-alphabetical list of brands.png
 Signature 

55+ free & paid Magento extensions

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top