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)
-   -   how to remove small icons next to category in ideal comfort (https://forum.x-cart.com/showthread.php?t=68083)

fiberglass.supply 11-04-2013 05:14 PM

how to remove small icons next to category in ideal comfort
 
I understand not adding image in category will not make them show up, but I need them for the fcommerce addon. I just want to remove them next to the category in ideal comfort. they show up next to categories in ideal comfort template, there's a tiny miniature icon, I just want to remove it from there.

totaltec 11-05-2013 06:17 PM

Re: how to remove small icons next to category in ideal comfort
 
In your version of X-cart, you should see a setting in the Flyout Menus module. Settings> Modules> Flyout Menus

Click the Configure button next to the module, and you'll see a select box that controls the icons. You can set it to "none".

If all else fails, edit the template that controls this section:
/common_files/modules/Flyout_Menus/Icons/fancy_subcategories.tpl

DBK Web Builder 05-07-2014 06:24 AM

Re: how to remove small icons next to category in ideal comfort
 
I really just want to change the size of the thumb - make it a little bigger

I see this
<code>
width="{$c.thumb_x}" height="{$c.thumb_y}"
</code>

Where do I reset this variable ?
I suppose I could just hardwire a number in ?

thanks

DonnaNJ

totaltec 05-07-2014 06:57 AM

Re: how to remove small icons next to category in ideal comfort
 
The $c array is instituted by this foreach:
Code:

{foreach from=$categories_menu_list item=c key=catid name=$loop_name}
The declaration "item=c" assigns each iteration of the loop to that variable $c.

So to discover where the size is set you need to be inspecting the original master array $categories_menu_list.

To see this array in webmaster mode, you need to turn off the "cache the menu" setting in modules/FlyoutMenus configuration settings.

Upon doing so you can easily tell that the value for each categories thumb_x and thumb_y is set to 16.

I believe it picks this up from modules/Flyout_Menus/func.php which uses the function func_ic_get_size_catthumbn located in include/func/func.image.php

Look at line 1810 of that file:
Quote:

// Get thumb_dims for schemes bt:88678 bt:93891 bt:121806
$icon_sizes['ideal_responsive'] = $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');

If you are using a custom skin, the size is likely controlled by line 1819 in the else statement:
Quote:

if (isset($icon_sizes[$skin_name])) {
$result = $icon_sizes[$skin_name];
} else {
$result = array('width' => '16', 'height' => '16'); //Default value for 3rd party skins.
}



All times are GMT -8. The time now is 06:03 PM.

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