I have created one attribute called imageUrl for importing product image url. And made some changes in media.phtml and list.phtml. Now product images not displaying in product list page but it displays images in product details page..

<img src="<?php echo $_product->getData('imageurl') ?>" /> 

In admin, Go to Catalog > Attributes > Manage Attributes.

Select/Edit imageUrl attribute > Select Properties tab.

In Frontend Properties block, set Used in Product Listing to Yes. Press Save.

Now check list page, it should show images now.

| improve this answer | |
  • It would also be worth making sure you clear the magento cache and reindex the product attributes (If not set to rerindex on save) – DanCarlyon Jun 29 '16 at 6:42
  • 1
    its not working... :( – Sruthi Jun 29 '16 at 7:13
  • what's your attribute_code ? imageUrl OR imageurl ? Have you cleared Cache and did re-index ? – Anil Suthar Jun 29 '16 at 7:14
  • imageurl .. . – Sruthi Jun 29 '16 at 8:46
  • please share a full code you did in list.phtml – Anil Suthar Jun 29 '16 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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