Post by print-n-tees » Tue Oct 10, 2017 12:21 pm

Greetings... Is there a way to make the images shown on the Admin Product List larger. Right now the thumbnails are soo small. I checked the settings for other images and the option for the Admin Product list is not there... so wondering where it can be changed?

Any help would be greatly appreciated.

Angelina

User avatar
New member

Posts

Joined
Sun Feb 24, 2013 2:54 pm


Post by DigitCart » Tue Oct 10, 2017 3:07 pm

Hi,
You need to edit this file:

Code: Select all

admin\controller\catalog\product.php
find:

Code: Select all

if (is_file(DIR_IMAGE . $result['image'])) {
	$image = $this->model_tool_image->resize($result['image'], 40, 40);
} else {
	$image = $this->model_tool_image->resize('no_image.png', 40, 40);
}
and change 40 to what you want.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by straightlight » Tue Oct 10, 2017 7:48 pm

In admin/controller/catalog/product.php file,

find:

Code: Select all

if (is_file(DIR_IMAGE . $result['image'])) {
				$image = $this->model_tool_image->resize($result['image'], 40, 40);
			} else {
				$image = $this->model_tool_image->resize('no_image.png', 40, 40);
			}
replace with:

Code: Select all

if (is_file(DIR_IMAGE . $result['image'])) {
    $image = $this->model_tool_image->resize($result['image'], $this->config->get('theme_' . $this->config->get('config_theme') . '_image_thumb_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_thumb_height'));
} else {
    $image = $this->model_tool_image->resize('no_image.png', $this->config->get('theme_' . $this->config->get('config_theme') . '_image_thumb_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_thumb_height'));
}

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by print-n-tees » Tue Oct 10, 2017 11:02 pm

Thank you both for your reply. You have both been very helpful.

Angelina

User avatar
New member

Posts

Joined
Sun Feb 24, 2013 2:54 pm


Post by oclcas » Sat Oct 14, 2017 7:20 am

Doesn't straight lines solution give you thumbnails on the backend the same size as the front end? They should be different.

New member

Posts

Joined
Wed Sep 14, 2016 11:22 pm

Post by straightlight » Sat Oct 14, 2017 7:39 am

The changes above does provide the width and height settings that have been defined in the store configuration for the thumbnails which means, yes, the thumbnails will be displayed on the same size from the back-end and the front-end store with these modifications.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: OSWorX, pprmkr and 474 guests