Post by OpenCustomer » Thu Sep 01, 2016 8:07 pm

Hello,

Is there a way to get the product thumbnail image size in the product list view in admin panel? They look really small in my desktop so I can't tell which product it is. Would be great if those thumbnails could be set larger.

Thanks!

CuteFox
OC 2.3.0.2

User avatar
New member

Posts

Joined
Mon Oct 26, 2015 2:43 am

Post by fido-x » Thu Sep 01, 2016 8:56 pm

In admin/controller/catalog/product.php, at lines 358-362, you'll 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);
}
The default size, is defined here as 40 by 40. Change to the size you want.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by OpenCustomer » Fri Sep 02, 2016 12:16 pm

Thanks,

I used different sizes on product.php as you suggested but didn't change at all. I still get the same size (40 by 40) image in the product list.

Any more advice pls?

User avatar
New member

Posts

Joined
Mon Oct 26, 2015 2:43 am

Post by OpenCustomer » Fri Sep 02, 2016 5:28 pm

Sorry, I was looking at different product.php file to edit the code you suggested.

That was the correct address I need to look at:
system\storage\modification\admin\controller\catalog\product.php

Now, I was able to resize the image on product list.

Thank you!

User avatar
New member

Posts

Joined
Mon Oct 26, 2015 2:43 am

Post by IP_CAM » Fri Sep 02, 2016 11:28 pm

system\storage\modification\admin\controller\catalog\product.php

is NOT the right Path, because you so only change the OcMod-CACHED Product.php page,
meaning, that if you ever OcMod-RESET your System, the changes will be gone!

You therefore have to make the changes in the:
admin\controller\catalog\product.php

to keep them.

Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by OpenCustomer » Sun Sep 04, 2016 1:36 am

Oh really? I didn't know that. Thank you.

In this case, I have to repeat: I used different sizes on admin\controller\catalog\product.php as suggested but didn't change at all. I still get the same size (40 by 40) image in the product list.

Any more advice pls?

User avatar
New member

Posts

Joined
Mon Oct 26, 2015 2:43 am

Post by IP_CAM » Sun Sep 04, 2016 12:09 pm

then, you are doing something wrong! ;)
But since you OcMod-CACHE this Admin Product Page, for some reason, possibly, an OcMod exists,
doing some harm to this Default SOURCE CODE setting !
Ernie
PS: checked on OC v.2.2.0.0. Source!

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by OpenCustomer » Sun Sep 04, 2016 1:51 pm

You were right about I was doing something wrong. I didn't know that I had to refresh after the modifications. Now, it works fine.

Thank you all!

User avatar
New member

Posts

Joined
Mon Oct 26, 2015 2:43 am

Post by fido-x » Sun Sep 04, 2016 1:52 pm

Make the changes in the file I told you to, then refresh your modifications under "Extension->Modification" in the admin.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: No registered users and 268 guests