Sunday, 15 August 2010

php - Magento image not showing correctly -



php - Magento image not showing correctly -

i working magento 1.9 , running problem not understand.

for reason first 2 images display correctly, pathes , appear right.

but lastly image won't show , displays magento default image instead.

any thought may causing problem?

i have tried next code

<i> <?php echo $this->helper('catalog/image')->init($this->getproduct(), 'thumbnail', $_image->getfile())->resize(70, 70); ?> <?php echo $this->helper('catalog/image')->init($this->getproduct(), 'image', $_image->getfile()); ?> </i>

should seek below

mage::helper('catalog/image')->init($this->getproduct(), 'thumbnail') ->resize($width, $height);

you should not create same size image of same product in same page.

php magento

No comments:

Post a Comment