Shopping Cart Operations > Template Support

Default Template Auto Size Product Images

(1/1)

nickjohn:
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

abantecart:
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: ---               $thumbnail = $resource->getMainThumb('products',
                                     $result['product_id'],
                                     $this->config->get('config_image_product_width'),
                                     $this->config->get('config_image_product_height'),true);


--- End code ---

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod