I added attribute "my_image" to customer, and I uploaded the images, but I can't display it in frontend edit form. Please help me. Thanks!


After 30 minutes try, I found the answer for my question. All I need is just add this code in template:

<img src="<?php echo Mage::getBaseUrl('media').'myimage'. DS .$login->getData("my_image");?>" alt=""/>

At first I was missing . DS .

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.