I'm trying to show the correct image for each product that is in the shopping cart (One Step Checkout). Currently when a customer chooses a product, if the product has multiple colour options, it loads the configurable product thumbnail.
So if a customer has the option between a black and red shirt, if they choose the red one, it should show the red shirt thumbnail, and vice verse. I've investigated some other posts:
However none of the solutions worked. I have System > Configuration > Checkout > Shopping Cart > Configurable Product Image > "Product Thumbnail Itself"
Currently I try to retrieve the image by doing the following in checkout/cart/item/default.phtml :
<?php $_item = $this->getItem(); $product_id = $_item->getProductId(); $_product = Mage::getModel('catalog/product')->load($product_id); <img data-image2x="<?php echo $this->getProductThumbnail()->resize(200, 300); ?>" src="<?php echo $this->getProductThumbnail()->resize(100, 150); ?>" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /> ?>
Can anyone help my solve this? Thanks!