php - Magento Uploaded custom image not showing at frontend -
i have added new image field in register form, edit form editing in core magento files. image uploading admin section during add new customer , front end when customer registers own account.
uploaded image storing in database. getting problem showing image @ front end. showing image @ frontend take path of media folder image exists , used in image src in customer account. failed load image.
pls give suggestion how can show uploaded customer image @ front end in customer account detail.
$mediapath = str_replace('\\','/', mage::getbasedir('media').ds.'customer'.ds);// media path $imagepath = substr($this->htmlescape($this->getcustomer()->getcustomerimage()),1);// image path <img src="<?php echo $mediapath.$imagepath;?>" /> //pass full url path of image
i using code showing image.
Comments
Post a Comment