I am learning Magento and I am trying to create a slider which show products' images. I am ok with the JS slider but I have problem when trying to get product images. I have tried these codes:
<?php $productModel = Mage::getModel('catalog/product'); $product_1 = $productModel->load(1); $name = $product_1->getData('name'); $description = $product_1->getData('description'); echo $name . '<br/>'; echo $description . '<br/>'; echo $product_1->getImageUrl(); ?>
The product's name and description are ok. But the image URL seems not right: http://hellomagento.dev/media/catalog/product/cache/1/image/265x/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/image.jpg It's a Magento logo in gray color.
I have upload image for the product already.
Please help! Thank you!