How to Get All Product Images in products list page?
来源:互联网 发布:如何从淘宝上买小黄书 编辑:程序博客网 时间:2024/06/10 09:26
<!-- Bring in gallery Images -->
<?php $_gallery = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages(); ?>
<?php $imgcount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages()->count();?>
<?php if($imgcount >1): ?>
<div class="more-views" style="float:left; padding-left:5px; padding-top:0px;">
<table>
<tr>
<?php foreach ($_gallery as $_image ): ?>
<td style="display:inline;">
<a href="#" onclick="popWin('<?php echo $this->helper('catalog/image')->init($_product, 'image', $_image->getFile()); ?>', 'gallery', 'width=300,height=300,left=50,top=50,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_image->getFile())->resize(87, 130); ?>" width="87" height="130" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
</td>
<?php endforeach; ?>
</tr>
</table>
</div>
<?php endif; ?>
- How to Get All Product Images in products list page?
- How to Get All Product Images in products list page?
- How to show related products in product view page with magento?
- how to show sku in product list page?
- Magento: How to list all the products in a single category in a sidebar block
- How to display custom select option on product list page?
- magento How to get all associated children product of a configurable product
- how-to upgrade all local docker images
- How to Get a List of Class Attributes in Python
- How to get all the members in user group by using LDAP in Perl?
- how to get pdf page numbers
- How to use Chrome/Chromium “base” library in private products ?
- how to get url and hostname and url text in one page
- How to save or get Images through Database.
- How to grab web page in chinese
- How to redirect page in JavaScript
- Siebel HOW TO: How to create Products?
- How to change upsell product display number on product view page?
- xfire+webservice(服务器配置篇)
- Oracle_C# 实现 Oracle Text(全文检索)的一个简单例子
- Flex中的CSS手册(更新中)
- 提升用户体验
- How to chage the default opstion value when adding new products?
- How to Get All Product Images in products list page?
- 开源ECommerce战争: Magento超越OsCommerce而成为最流行开源电子商务系统的秘密
- allegro的快捷键,如何设置allegro 快捷键
- 初探magento的MVC架构(Create new module “HelloWorld” – in Magento)
- Oracle_日期型数据
- 父类指针对子类成员变量的访问
- 深入理解magento
- How to remove a block from the particular page?
- Print the amount of items and total price of Magento's cart