Opencart Thumbnail Size

I just started working with opencart, so I'm not very. I want to resize thumbnails of my products to a larger size. So, I explored Google and the answer came up. Go to "System"> "Settings", "Edit Storage" and on the "Image" tab, select the size I want. The fact is that this does not work, and I do not know why. For example, on Best Sellers or Featured Products, the thumbnail size is always the same, 80x80.

Any help?

Thiago Castro

+8
thumbnails size opencart
source share
7 answers

In OpenCart 1.5.4, in the admin panel, System > Settings > Modify > Image .

+12
source share

Most modules use the thumb size for the position of the home page, but have static image sizes encoded for left / right columns.

You have two options ... Either switch the template to pull the size of the sketch: Change /catalog/view/theme//module/.tpl

(replace your theme, if you have one, and with bestseller.tpl and / or featured.tpl)

replace $ product ['image'] with $ product ['thumb']

Although your thumbnails can be enlarged for your columns left / right ...


Another option is to edit the controller and specify the size ...

Modify / catalog / controller / module / .php (again either bestseller.php or featured.php)

At 1.4.9.x around line 67-68 you will find:

$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')), 

Just decide whether you want to rigidly set the new image size (in this example, 38x38) or associate the size of the "image" with the size of the thumbnails .....

if you hardcode it, just set "38, 38" ...

If you want to associate it with the thumbnail size, just copy the value from 'thumb'

+5
source share

In the admin panel, go to Extensions> Options> Change , in edit mode change 80x80 to whatever you like, I assume that you want it to be equal to the rest of the images if you edit its coincidence. Repeat for the last module.

+2
source share

No need to edit any code. Switch to:

Extensions → Modules → Recent

and you can edit the image size from there.

+2
source share

Extensions> Functions> edit also helped me increase the size of the thumbnail image. Thank you so much.....

+1
source share

extensions> Functions> Edit helped me, I just had to set the same image size that I entered in System> Settings> Edit> Image (in Thumb Size format).

I am using version 1.5.6

0
source share

For the new version 2.4.0.2, possibly for new versions

you can go to Extensions> Extensions> select Themes from the "Select Extension" selector, and then click> Change Theme to view the Images section and resize the image.

0
source share

All Articles