0

enter image description hereref:mages not displaying in cart or mini cart

I have created one custom attribute imageurl to import product image url. Product images are loading from external url. Images displaying in product list and product detailed page. But simple products are not displaying in cart and mini cart page.. What can be the issue?

2
  • Do you use https in cart? Jul 1, 2016 at 6:15
  • sorry... I didnt get you..
    – Sruthi
    Jul 1, 2016 at 6:24

1 Answer 1

2

Edit /app/design/frontend/PACKAGE/THEME/template/checkout/cart/item/default.phtml and use below code to get an ImageUrl :

<img src="<?php echo Mage::getModel("catalog/product")->load($_item->getProduct()->getId())->getImageurl(); ?>" />
3
  • no .. its not working... configurable product images are displaying but not simple product images
    – Sruthi
    Jul 1, 2016 at 6:25
  • Are you sure, this simple product has imageurl attribute set ? Jul 1, 2016 at 6:29
  • This is just a logic that you need to place in appropriate template. Just check/debug for simple product cart template (Can use Path hints), and place above code. Jul 1, 2016 at 6:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.