Magento News
How do I find out if product has a product image?
To get the image src in a template file the following code is used:
$this->helper('catalog/image')->init($_product, 'small_image')->resize(200,100);
But how can I find out if there is an image associated with the product or if the placeholder image will be used?
(Magento v. 1.4.2)
How do I find out if product has a product image?
Possibly Related Posts:
- Database query different results
- Menu highlight in magento under admin
- magento disable a banner on certain category pages or have a banner with multiple links
- Magento, using ACL for frontend. Possible?
- Magento IE-7 Fix In Windows XP
RSS Feed