X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Image size for Category Icons. (https://forum.x-cart.com/showthread.php?t=65679)

Shaggy 12-18-2012 01:03 PM

Image size for Category Icons.
 
I have the skin "Ideal Comfort" on my cart and I was wanting to change the image size of the Catergory Icon from 16px by 16px to 30px by 30px. I have uploaded images in the 30px size but it still resized it to 16px. There are options in the admin cp to change the settings and I have been going through 8 or 9 templates to see if I can hard code it. Can't seem to find what I need to edit. Can someone point me in the right direction?

tartaglia 12-18-2012 01:26 PM

Re: Image size for Category Icons.
 
Download Chrome browser. load page. Right Click on icon. Select Inspect Element. look through the css, it may be there.

Shaggy 12-18-2012 03:31 PM

Re: Image size for Category Icons.
 
Thanks, but not sure how to find the file to edit. I see where the coding is, but can't figure out what file the coding is from.

cflsystems 12-18-2012 04:53 PM

Re: Image size for Category Icons.
 
You will not find this no matter what you do and there is no setting in admin... suprise, it is hard coded of course - in include/func/func.image.php - function func_ic_get_size_catthumbn

The strange thing about it though is that the function accepts width and height as parameters but they are not used anywhere in the function body - they are hardcoded instead

Code:

function func_ic_get_size_catthumbn($width, $height, $skin_name = '')
{
    global $alt_skin_info;
    if (empty($skin_name))
        $skin_name = $alt_skin_info['alt_schemes_skin_name'];
    // Get thumb_dims for schemes bt:88678 bt:93891 bt:121806
    $icon_sizes["books_and_magazines"] = $icon_sizes['ideal_comfort'] = $icon_sizes['2-columns'] = $icon_sizes['3-columns'] =  $icon_sizes['fashion_mosaic_blue'] = $icon_sizes['fashion_mosaic_green'] = $icon_sizes['fashion_mosaic_grey'] = $icon_sizes['fashion_mosaic_pink'] = $icon_sizes['vivid_dreams_aquamarine'] = $icon_sizes['vivid_dreams_violet'] = array('width' => '16', 'height' => '16');
    $icon_sizes["vivid_dreams_chromo"] = array('width' => '32', 'height' => '32');
    $icon_sizes["vivid_dreams_lotus"]  = array('width' => '32', 'height' => '32');
 
    if (isset($icon_sizes[$skin_name])) {
        $result = $icon_sizes[$skin_name];
    } else {
        $result = array('width' => '24', 'height' => '24'); //Default value for 3rd party skins.
    }
    return $result;
}


This is just one of the things you will not find any logic behind....


All times are GMT -8. The time now is 06:56 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.