Post by thinkingforward » Thu Nov 26, 2009 6:48 am

Hi there,

I have resized the product listing images to 250 x 250. How do I set the width of the product listing so it doesn't display more than 2 across and go off the page?

Thanks!

Active Member

Posts

Joined
Wed Nov 25, 2009 2:55 am


Post by imaginetech » Thu Nov 26, 2009 11:39 am

You'll need to adjust the php for loops in the home.tpl, category.tpl, search.tpl files.

Just change the 4 to whatever you want and make sure the table cell widths are adjusted from the 25% they are by default.

Image
www.opencartstore.com
Get OpenCart Templates and OpenCart Modules.


User avatar
Active Member

Posts

Joined
Fri Sep 04, 2009 12:25 pm
Location - Darwin, Australia

Post by thinkingforward » Thu Nov 26, 2009 3:40 pm

Thanks for that.

How would I go about changing "latest products" image size to calling the image size from related products, rather than from the product listing size (that's set within admin)?

Active Member

Posts

Joined
Wed Nov 25, 2009 2:55 am


Post by Qphoria » Thu Nov 26, 2009 11:34 pm

Edit: catalog/controller/common/home.php
FIND:

Code: Select all

'thumb'   => image_resize($image, $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')),
REPLACE WITH:

Code: Select all

'thumb'   => image_resize($image, $this->config->get('config_image_related_width'), $this->config->get('config_image_related_height')),

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 9 guests