Magento – How to display selectable attributes in product listing

ce-1.7.0.2configurable-productmagento-1.7product-list

I want to display a size attribute in product listing as shown in the image

enter image description here

I created an attribute and configurable product. In the product detail page i am able to select attributes. I set 'Used in Product Listing to yes' for the attribute. I am not able to show it in the frontend listing. Is there any way to show attribute like this?.

Best Answer

This is not a trivial task. There is a good tutorial by Inchoo how to achieve it.

Pasting just a link as an answer is not a good practice but the solution is too complex with lot's of code chunks to be posted.

I can add that I tried this solution by myself and it works flawlessly.