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, 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

Magento Forum

How to display product images according to their sorted color on list.phtml
Jr. Member
Total Posts:  3
Joined:  2012-05-30

Please help on my following issue:
What we have is a configurable product and their associated products are distinguished according to their different color. eg a shoe has two different color say red and blue.
When the products are listed on list.phtml page their default image are getting displayed which we set from the backend of each product but every shoe has a different set of images for each red and blue color.
When we sort shoe according their color, the default image of shoe is displayed which is blue. Here the problem occurs, what is want is to display the shoe image respect to their color instead of their default image.
eg If we select the red color shoe their default color image of blue is displayed on the list.phtml page.

Please help me on I am having really tough time to solve this issue.

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