Magento:在list.phtml中获取图片库 [英] Magento: Get Image Gallery in list.phtml

查看:75
本文介绍了Magento:在list.phtml中获取图片库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于已加载的产品,如何将图像库捕获到Magento的类别页面中?

How can I grab the image gallery into the category page in Magento, for a loaded product?

this->getImageGallery($_product)

,将不起作用.

推荐答案

$product = Mage::getModel('catalog/product')->load($_product->getId());

foreach ($product->getMediaGalleryImages() as $image) {
    echo var_export($image->getUrl());
} 

这篇关于Magento:在list.phtml中获取图片库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆