AbanteCart Community

Shopping Cart Operations => Support => Template Support => Topic started by: gordontaylor on March 25, 2014, 02:36:50 PM

Title: Special Category - Home Page - Columns
Post by: gordontaylor on March 25, 2014, 02:36:50 PM
I'm using 1.1.8, a fresh install. On the home page if I add specials to the right or left  hand column, the pictures are very large. It's only with the special, all other categories of blocks work fine.
Title: Re: Special Category - Home Page - Columns
Post by: eCommerce Core on April 15, 2014, 04:05:00 AM
I can see what you see. This is standard image size. If you want to set it smaller, you can edit it in admin -> system -> settings -> appearance. for  Product List Width and Product List Height.
This will change the size of all images in listing pages and other places.

If you need to change this only in specials file, you can set it to Product Image Thumb Width and Height.
To fix you can edit this file: storefront/controller/blocks/special.php

change:

$thumbnail = $resource->getMainThumb('products',
                                     $result['product_id'],
                                     $this->config->get('config_image_product_width'),
                                     $this->config->get('config_image_product_height'),true);

to

$thumbnail = $resource->getMainThumb('products',
                                     $result['product_id'],
                                     $this->config->get('config_image_thumb_width'),
                                     $this->config->get('config_image_thumb_height'),true);


Title: Re: Special Category - Home Page - Columns
Post by: gordontaylor on April 15, 2014, 09:43:03 AM
Thanks eComm ... it's an old post, I should have updated it.