View Single Post
  #7  
Old 07-01-2009, 07:10 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Show menu based on category

add in your include/categories.php

right before the lines
Code:
# # Gather the array of categories and extract into separated arrays: # $all_categories, $categories and $subcategories #

this code:
Code:
/*custom home.tpl mod*/ $_r_cat = 103; //this category and its offsprings will have custom home.tpl $_path = explode('/', $current_category['categoryid_path']); if (in_array($_r_cat, $_path)){ $smarty->assign("area2", "true"); } /*custom home.tpl mod ends*/


your customer/home.tpl should be like this:
Code:
{if $area2 ne ''} {include file="customer/home2.tpl"} {else} ....Your current home.tpl content {/if}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote