首页 文章

Magento-在类别网格和列表页面上调整图像大小

提问于
浏览
2

我需要将类别页面上135x135图像尺寸的默认图像尺寸更改为187x140 . 我编辑了两个.phtml文件:

目录>产品> new.phtml和目录>产品> list.phtml

并更改了以下 <a href="...$this->helper('catalog/image')->init($_product, 'small_image')->***resize(187,140) ?>" width="187" height="140"*** alt="...></a>

我也改变了css .products-grid .product-image { display:block; width:187px; height:140px; margin:0 0 0px; }

我清理现金,登录并退出 . 我的图片占位符已上传,上传时尺寸正确 .

我不明白为什么我的图像尺寸仍然显示为135x135 .

有人能帮我吗?

2 回答

  • 0

    删除/ var / session和/ var / cache文件夹 . 这通常会清除任何缓存问题 .

  • 0

    即使在清除图像缓存,var cache en sessions之后,我也遇到了同样的问题 . 看来另一个模块正在覆盖主题的list.phtml文件 . 查看覆盖主题文件的模块的/ app / design / frontend / default / default / template文件夹 .

相关问题