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)
-   -   Category thumbnail image size front page? (https://forum.x-cart.com/showthread.php?t=61152)

a1deano 10-08-2011 11:02 AM

Category thumbnail image size front page?
 
Hi does anyone know how to increase the size of the category thumbnail on the main page I just can't seem to find were it is.

In v4.4.4 / for vivid_dreams_violet

Have added picture

Many thanks

vasilis 10-12-2011 02:18 AM

Re: Category thumbnail image size front page?
 
You can check which style rule to edit, through firebug. Any url to your site?

JWait 10-12-2011 06:22 AM

Re: Category thumbnail image size front page?
 
In admin, the size is set at General Settings / Appearance.

a1deano 10-12-2011 02:42 PM

Re: Category thumbnail image size front page?
 
Hi the settings in general settings /appearance don't do these thumbnail pictures.
I did have ago with firebug but just couldn't work it out

The url is www.puretaboo.co.uk

Please note - this is an adult shop although not fully up and running yet!!

Thanks for any help

vasilis 10-12-2011 03:26 PM

Re: Category thumbnail image size front page?
 
by checking your site with firebug, it looks that the 16px width and height of the category icons are not set by any style rule, but are hard-coded in the corresponding template that renders the icons - probably the template for the side-menu which is 'customer/categories.tpl' (you can find the exact template by using the webmaster mode), so you might want to look into it for code similar to
Code:

<img width="16" height="15" alt=""
which is repeatedly rendered on every anchor element, for each category, so the above code will be located inside a {section}...{/section} or {foreach}...{/foreach} pair of smarty tags for looping the rendering of each category and icon.

a1deano 10-12-2011 11:34 PM

Re: Category thumbnail image size front page?
 
Thanks for your help I went through several templates but found nothing showing sizes, this is a weird one....

vasilis 10-13-2011 01:53 AM

Re: Category thumbnail image size front page?
 
Are you certain that this is not set through the General Settings / Appearance as JWait previously posted? Otherwise it will take some template checking/customization. If you are further interested for professional help, feel free to send me a pm.

cflsystems 10-13-2011 05:48 AM

Re: Category thumbnail image size front page?
 
All you have to do is search in the right place - /include/func/func.image.php

Code:

function func_ic_get_size_catthumbn($width, $height, $skin_name = '')
{
    global $alt_skin_info;
    if (empty($skin_name))
        $skin_name = $alt_skin_info['name'];
    // Get thumb_dims for schemes bt:88678 bt:93891
    $icon_sizes = array (
        "Light & Lucid (2-column)"                  => array('width' => '16', 'height' => '16'),
        "Light & Lucid (3-column)"                  => array('width' => '16', 'height' => '16'),
        "Artistic Tunes (Business)"                => array('width' => '16', 'height' => '16'),
        "Artistic Tunes (Car Tires)"                => array('width' => '16', 'height' => '16'),
        "Artistic Tunes (Fragrances and Makeup)"    => array('width' => '16', 'height' => '16'),
        "Artistic Tunes (Water Colour)"            => array('width' => '16', 'height' => '16'),
        "Fashion Mosaic (Blue)"                    => array('width' => '16', 'height' => '16'),
        "Fashion Mosaic (Green)"                    => array('width' => '16', 'height' => '16'),
        "Fashion Mosaic (Grey)"                    => array('width' => '16', 'height' => '16'),
        "Fashion Mosaic (Pink)"                    => array('width' => '16', 'height' => '16'),
        "Vivid Dreams (Aquamarine)"                => array('width' => '16', 'height' => '16'),
        "Vivid Dreams (Chromo)"                    => array('width' => '32', 'height' => '32'),
        "Vivid Dreams (Lotus)"                      => array('width' => '32', 'height' => '32'),
        "Vivid Dreams (Violet)"                    => array('width' => '16', 'height' => '16')
    );
 
    if (isset($icon_sizes[$skin_name])) {
        $result = $icon_sizes[$skin_name];
    } else {
        $result = array('width' => '16', 'height' => '16'); //Default value for 3rd party skins.
    }
    return $result;
}


a1deano 10-16-2011 01:51 PM

Re: Category thumbnail image size front page?
 
Steve your a top man I just couldn't find this one.

Many thanks


All times are GMT -8. The time now is 05:48 PM.

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