Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Product image not displayed
 
harish
Jr. Member
 
Total Posts:  23
Joined:  2008-04-01
 



Product image is not displayed. though image is upload correctly. In backend when i mouse over the image. it is displayed, after saving it is not. As it not displayed in backend . so it can not be displayed in frondend.

i tried this in getUrl() function:

main code was this:

$baseDir = Mage::getBaseDir(’media’);
$path = str_replace($baseDir . DS, “”, $this->_newFile);
return Mage::getBaseUrl(’media’) . str_replace(DS, ‘/’, $path);

and changed it with this:

$baseDir = Mage::getBaseDir(’media’);
$path = str_replace("{$baseDir}\\", “”, $this->_newFile);
$path = str_replace("\\”,"/",$path);
return Mage::getBaseUrl(’media’) . $path;

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

Strange this thing, are you sure that after uploaded images you checked the radiobox on the right?

Normally image is ok in backend but not in frontend when the radiobutton is not checked appropriated

 
Magento Community Magento Community
Magento Community
Magento Community
 
harish
Jr. Member
 
Total Posts:  23
Joined:  2008-04-01
 

Of course i have checked the radio box. when i upload image is displayed before saving after that it disappears and roll over for preview is displayed.

 
Magento Community Magento Community
Magento Community
Magento Community
 
magpieradio
Jr. Member
 
Total Posts:  30
Joined:  2008-04-27
 

Any fix for this?  I am having this problem.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top