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

Re: flyout menus

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-09-2012, 03:55 PM
  Tonga's Avatar 
Tonga Tonga is offline
 

Newbie
  
Join Date: Sep 2010
Posts: 1
 

Default 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.
__________________
X-Cart Pro 4.3.0
Multi vendor
Reply With Quote
  #2  
Old 02-10-2012, 12:28 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,129
 

Default 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.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote
  #3  
Old 02-10-2012, 09:43 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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}
__________________
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 10:54 AM.

   

 
X-Cart forums © 2001-2020