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)
-   -   Re: flyout menus (https://forum.x-cart.com/showthread.php?t=62603)

Tonga 02-09-2012 03:55 PM

Re: flyout menus
 
Hi,
Quote:

Originally Posted by ambal
You don't want a visitor to be able to click a root category if there is a sub-category inside it, do you? If so, you'll need to customize FlyOut menus a bit to support it.


I am trying to make the root categories non-linking (not a href=) as well but I am not sure what code to use in what file.

I am still using X-Cart Pro 4.3, and I am trying to find which file to change in /modules/Flyout_Menus/. Even if I know which file to change I am not to sure what code to add to strip out the URL or what code to omitt.

Is somebody able to help me please?

My site is http://tlbde.com/ (if this helps)

Regards,
Craig.

ambal 02-10-2012 12:28 AM

Re: flyout menus
 
Moved to "X-Cart Customization > Storefront Design & Template Editing in v 4.2.x and 4.3.x" for better chances on helping here.

cflsystems 02-10-2012 09:43 AM

Re: flyout menus
 
It will be /skin/common_files/modules/Flyout_Menus/Icons/fancy_subcategories.tpl most likely and this code
Code:

      {strip}
      <a href="home.php?cat={$catid}" class="{if $config.Flyout_Menus.icons_icons_in_categories gte $level+1}icon-link{/if}{if $config.Flyout_Menus.icons_disable_subcat_triangle eq 'Y' and $c.subcategory_count gt 0} sub-link{/if}{if $config.Flyout_Menus.icons_empty_category_vis eq 'Y' and not $c.childs and not $c.product_count} empty-link{/if}{if $config.Flyout_Menus.icons_nowrap_category ne 'Y'} nowrap-link{/if}">
        {if $config.Flyout_Menus.icons_icons_in_categories gte $level+1 and $c.is_icon}
          <img src="{$c.thumb_url|amp}" alt="" width="{$c.thumb_x}" height="{$c.thumb_y}" />
        {/if}
        {$c.category|amp}
        {if $config.Flyout_Menus.icons_display_products_cnt eq 'Y' and $c.top_product_count gt 0}
          ({$c.top_product_count})
        {/if}
      </a>
      {/strip}

will change
Code:

      {strip}
  {if $c.parentid ne 0}
      <a href="home.php?cat={$catid}" class="{if $config.Flyout_Menus.icons_icons_in_categories gte $level+1}icon-link{/if}{if $config.Flyout_Menus.icons_disable_subcat_triangle eq 'Y' and $c.subcategory_count gt 0} sub-link{/if}{if $config.Flyout_Menus.icons_empty_category_vis eq 'Y' and not $c.childs and not $c.product_count} empty-link{/if}{if $config.Flyout_Menus.icons_nowrap_category ne 'Y'} nowrap-link{/if}">
  {/if}
        {if $config.Flyout_Menus.icons_icons_in_categories gte $level+1 and $c.is_icon}
          <img src="{$c.thumb_url|amp}" alt="" width="{$c.thumb_x}" height="{$c.thumb_y}" />
        {/if}
        {$c.category|amp}
        {if $config.Flyout_Menus.icons_display_products_cnt eq 'Y' and $c.top_product_count gt 0}
          ({$c.top_product_count})
        {/if}
  {if $c.parentid ne 0}
      </a>
  {/if}
      {/strip}



All times are GMT -8. The time now is 11:26 PM.

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