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

Sticky subs and Parent Header

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 09-24-2005, 11:44 AM
 
hcabarcas hcabarcas is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 3
 

Default Sticky subs and Parent Header

Newbie here but just wanted to share a quick tip: separate root categories from subcategories; maintain the subcategories menu even if clicking on a link within the subcategories; and most importanty (at least as my needs were concerned)...use the parent category as a header ("you're here") indicator. Although the "you're here" indicator I cooked up, the rest was provided by a helpful person on the forum. Thanks for helping me get through this project.


Code:
{if ($navigation_page eq "")||($navigation_page eq "1")}{strip} {section name=position loop=2} {if not %position.first%}{$location[position].0}{/if} {if $location[position].0 ne "" }{/if} {/section} {/strip}{/if} {section name=cat_num loop=$allcategories} {if $allcategories[cat_num].parentid eq $location[1].1|replace:"home.php?cat=":""} { $allcategories[cat_num].category|escape } {/if} {/section}
__________________
--
MachoManX
Reply With Quote
  #2  
Old 09-24-2005, 07:17 PM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default

Don't really understand the mod. Can you provide a demo for everyone!!
__________________
X-Cart Gold 4.0.17
Reply With Quote
  #3  
Old 09-25-2005, 07:28 AM
 
hcabarcas hcabarcas is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 3
 

Default

Yes, the site is still in development and I'm a first time X-Cart user but click the Hosiery/Lingerie link at the left. To the right, you'll then see the sub categories with the main category name (header) above it in red. Click on 2/3 Pc. Sets and you'll see the menu sticks.

http://mystikdesires.com/shop/home.php
__________________
--
MachoManX
Reply With Quote
  #4  
Old 09-25-2005, 12:42 PM
 
garry garry is offline
 

Senior Member
  
Join Date: Oct 2003
Location: Wolverhampton UK
Posts: 102
 

Default

Looks a great mod, however whereabouts does this code go?
__________________
Garry


http://www.natralife.co.uk


X-Cart Gold version 4.5.4
PHP 5.3.18
MySQL client 5.0.96
Reply With Quote
  #5  
Old 09-25-2005, 12:49 PM
 
garry garry is offline
 

Senior Member
  
Join Date: Oct 2003
Location: Wolverhampton UK
Posts: 102
 

Default

Ignore my last post, it can go in the home.tpl if needed or products.tpl I presume.

Thanks
__________________
Garry


http://www.natralife.co.uk


X-Cart Gold version 4.5.4
PHP 5.3.18
MySQL client 5.0.96
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:56 PM.

   

 
X-Cart forums © 2001-2020