We're using grouped products, and we have the configuration set to use the parent image for thumbnails in the shopping cart view. This is working, but when we see those products in the wishlist, all we see is a placeholder image.
How can I make the thumbnail selection there work the same as on the cart page?
I have tried editing the wishlist/view.phtml to use:
$this->helper('catalog/image')->init($this->getItemProductForThumbnail($item), 'small_image')->resize(113, 113);
instead of
$this->helper('catalog/image')->init($product, 'small_image')->resize(113, 113);
but that breaks the page. I get this in the system.log:
2014-09-18T18:15:30+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Catalog_Helper_Image::init() must be an instance of Mage_Catalog_Model_Product, null given, called in...
So I don't think $item is what getItemProductForThumbnail($item)
is expecting