8

I've just started to work with opencart so I don't very much. I want to change the thumbnail size of my products to a bigger size. So, I've researched on Google and an answer came up. Go to System>Settings, Edit Store and under the Image tab, choose the size I want. The thing is, that is not working and I don't know why. For example, on Best Sellers or on Featured Products, the thumbnail size is always the same, 80x80.

Any help?

Tiago Castro

4

7 回答 7

12

在 OpenCart 1.5.4 中,它是管理面板中的系统>设置>编辑>图像

于 2012-08-22T17:55:39.057 回答
6

大多数模块使用“拇指”大小作为主页位置,但具有为左/右列编码的静态图像大小。

您有两个选择...切换模板以拉出缩略图大小:编辑 /catalog/view/theme//module/.tpl

(如果您有主题,请替换为 bestseller.tpl 和/或 features.tpl)

将 $product['image'] 替换为 $product['thumb']

尽管那时您的缩略图可能对于您的左/右列来说过大......


另一个选项是编辑控制器并指定大小......

编辑 /catalog/controller/module/.php(同样是 bestseller.php 或 features.php)

在 1.4.9.x 的第 67-68 行附近,您会发现:

$this->data['products'][] = array(    // From line 58
....
....
// Line 67
'image'         => $this->model_tool_image->resize($image, 38, 38),
'thumb'         => $this->model_tool_image->resize($image, $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')),

只需决定是否要硬编码新的图像大小(在本例中为 38x38)或将“图像”大小链接到缩略图大小......

如果您对其进行硬编码,只需更改“38、38”...

如果要将其链接到缩略图大小,只需从 'thumb' 复制值

于 2011-09-02T06:06:29.067 回答
2

在管理面板中,转到extensions>Features>Edit,在编辑模式下将 80x80 更改为您喜欢的任何内容,我假设您希望它等于其余图像,如果是这样,请对其进行编辑以匹配。对最新模块重复。

于 2012-08-07T12:42:00.010 回答
2

无需编辑任何代码。去:

扩展 -> 模块 -> 最新

您可以从那里编辑图像大小。

于 2014-06-12T12:08:12.050 回答
1

extensions>features>edit 也帮助我增加了缩略图中图像的大小。多谢.....

于 2014-09-24T10:17:33.673 回答
0

extensions>Features>Edit 帮助了我,我只需要放入与 System > Settings > Edit > Image 相同的图像尺寸(在 Product Image Thumb Size 中)。

我使用的是 1.5.6 版本

于 2014-02-12T21:55:24.120 回答
0

对于 New Opencart 版本 2.3.0.2 ,可能对新版本有所帮助

您可以转到Extensions > Extensions >从“Choose the extension”类型选择器中选择 Themes,然后在您的主题上单击 > Edit,以查看图像部分并更改图像大小。

于 2017-02-23T15:39:32.667 回答