Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Image size for Category Icons.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-18-2012, 01:03 PM
 
Shaggy Shaggy is offline
 

Newbie
  
Join Date: Jun 2008
Location: Arizona
Posts: 4
 

Default 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?
__________________
4.0.19
Reply With Quote
  #2  
Old 12-18-2012, 01:26 PM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default 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.
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
  #3  
Old 12-18-2012, 03:31 PM
 
Shaggy Shaggy is offline
 

Newbie
  
Join Date: Jun 2008
Location: Arizona
Posts: 4
 

Default 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.
__________________
4.0.19
Reply With Quote
  #4  
Old 12-18-2012, 04:53 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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....
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:03 AM.

   

 
X-Cart forums © 2001-2020