简体   繁体   English

Magento 1.9.2.4产品缩略图未在网格/列表视图中显示

[英]Magento 1.9.2.4 product thumbnail image not showing in grid/list view

I've installed Magento 1.9.2.4. 我已经安装了Magento 1.9.2.4。 I imported the products and the store data from magento 1.4 using sql. 我使用sql从magento 1.4导入了产品和商店数据。 I putted the media folder from the old site to the new site. 我将媒体文件夹从旧站点放到了新站点。 The thumbnail image is replaced by placeholder only in product listing, on every category. 缩略图仅在每个类别的产品列表中被占位符替换。 If I click on a product, I have all the images. 如果我单击某个产品,则将显示所有图像。

In the backend are checked all boxes from images. 在后端选中图像中的所有框。 I have right permissions on media/catalog/product folder. 我对media / catalog / product文件夹拥有正确的权限。 I have php memory set to 2048M, so I don't think that this is the problem. 我的php内存设置为2048M,所以我不认为这是问题所在。 I also have installed gd library. 我还安装了gd库。

Please give me an advice. 请给我一个建议。
从我的网站打印屏幕

UPDATE: Fixed. 更新:固定。

I didn't find a solution using cache images. 我没有找到使用缓存图像的解决方案。

I used the following code to display images in the product category grid: 我使用以下代码在产品类别网格中显示图像:

 <img src="<?php $product= Mage::getModel('catalog/product')->load($_product->getId());
         $thumbUrl = $product->getThumbnailUrl(200, 200);
           echo $thumbUrl; ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" width="200" height="200" />

It looks like the only thing that wasn't done in your migration was flushing the image cache. 看起来迁移中唯一没有做的事情就是刷新图像缓存。 To do so, go into the admin backend and navigate to System > Cache Management > Flush Catalog Images Cache . 为此,请进入管理后端,然后导航至“ System > Cache Management > Flush Catalog Images Cache

Note that this will affect load times of pages into cache again as it needs to regenerate the resized images. 请注意,这将影响页面重新加载到缓存的时间,因为它需要重新生成调整大小的图像。

并请检查媒体目录权限,暂时将其设置为777

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM