0
にlist.phtmlページのサムネイル画像を取得する方法を、私は多くのことを試してみましたが、何も本当に私のために働く、親切に私の問題を解決することができるものを共有する。事前のおかげでは、Magentoの1.9.2.4に<strong></strong> list.phtmlページの<strong>view.phtml</strong>ページからサムネイル画像を表示する方法Magentoの1.9.2.4
にlist.phtmlページのサムネイル画像を取得する方法を、私は多くのことを試してみましたが、何も本当に私のために働く、親切に私の問題を解決することができるものを共有する。事前のおかげでは、Magentoの1.9.2.4に<strong></strong> list.phtmlページの<strong>view.phtml</strong>ページからサムネイル画像を表示する方法Magentoの1.9.2.4
<?php //get images for product
$product = Mage::getModel('catalog/product')->load($_product->getId());
$helper = Mage::Helper('catalog/image');
foreach ($product->getMediaGalleryImages() as $image) {
echo "<img src='" . $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $image->getFile())->resize(80) . "' />";
}
?>
てみてください。この
Mage::helper('catalog/image')->init($item->getProduct(), 'thumbnail');
この親切シェアの詳細を追加する方法 –