I am trying to get the image of child (associated product) of a configurable product on wishlist page if selected. Currently, parent image is shown whether or not I have selected associated product.

Mean if I selected an associated product option and add it to wishlist, I should be able to see the image of selected associated product rather than default parent image.

What I already have done, in this file, I have been trying to get it:

PHP Code:
//my code
if ($product->getHasOptions()) { // mean it is configurable product
$my_options = new Mage_Wishlist_Block_Customer_Wishlist_Item_Options();
$my_config_options $my_options->getConfiguredOptions();
if (
$my_config_options) {
//try to find some link to the image

But it is not helping out. My above code may not be good enough, but I am just trying to reflect that I did try it myself.

View more threads in the same category: