I am using Magento community version 1.5.1.0.
I need to get a product have image or not. If a product have no image we want to assign its category image instead of magento default image.
How can I find that product have image or not?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the above code, it gives the image if product have or it return the key “no_selection“
With this we can findout that images was upload or not for a product.