Author Topic: Special Category - Home Page - Columns  (Read 5034 times)

gordontaylor

  • Guest
Special Category - Home Page - Columns
« 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.
« Last Edit: March 25, 2014, 02:38:38 PM by gordontaylor »

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: Special Category - Home Page - Columns
« Reply #1 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:
Code: [Select]
$thumbnail = $resource->getMainThumb('products',
                                     $result['product_id'],
                                     $this->config->get('config_image_product_width'),
                                     $this->config->get('config_image_product_height'),true);
to
Code: [Select]
$thumbnail = $resource->getMainThumb('products',
                                     $result['product_id'],
                                     $this->config->get('config_image_thumb_width'),
                                     $this->config->get('config_image_thumb_height'),true);

“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

gordontaylor

  • Guest
Re: Special Category - Home Page - Columns
« Reply #2 on: April 15, 2014, 09:43:03 AM »
Thanks eComm ... it's an old post, I should have updated it.

 

Powered by SMFPacks Social Login Mod