Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Default Template Auto Size Product Images  (Read 6078 times)

Offline nickjohn

  • Newbie
  • *
  • Posts: 14
  • Karma: +1/-0
    • View Profile
Default Template Auto Size Product Images
« on: January 27, 2013, 10:02:58 AM »
Hi,
I have product images on the index page of the default template and want to set them to auto size and wondered if anyone could point me in the right direction of how to do this.
Cheers

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Default Template Auto Size Product Images
« Reply #1 on: January 28, 2013, 06:39:34 AM »
Image widths are set based on settings in admin -> system -> settings -> appearance.

If you want to remove this in the code you can edit following file for specials that are shown on the main page:
storefront/controller/pages/product/special.php

Edit following lines:
Code: [Select]
               $thumbnail = $resource->getMainThumb('products',
                                     $result['product_id'],
                                     $this->config->get('config_image_product_width'),
                                     $this->config->get('config_image_product_height'),true);

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

 

Powered by SMFPacks Social Login Mod