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

hide menu on static pages and help pages?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-24-2009, 02:26 AM
 
webdesignhelper webdesignhelper is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 52
 

Default hide menu on static pages and help pages?

i want to hide part of the site when me users go to either my static pages for help pages, what if statement do i need to use in my templates to do this ?
__________________
WebDesignHelper.co.uk
Version 4.4.2 of x-cart
Reply With Quote
  #2  
Old 04-24-2009, 03:14 AM
  ElegantXMods.com's Avatar 
ElegantXMods.com ElegantXMods.com is offline
 

Advanced Member
  
Join Date: Apr 2009
Location: Stirling, UK
Posts: 94
 

Default Re: hide menu on static pages and help pages?

Open skin1/customer/home.tpl and find the line

Code:
<!-- main area -->

after this line, insert this code

Code:
{if $main eq "pages"} {include file="customer/home_main.tpl"} {else}

now scroll down and find

Code:
{include file="rectangle_bottom.tpl" }

and ABOVE this insert this line:

Code:
{/if}
__________________
John
ElegantXMods.com

QuickOrder AJAX-based search and ordering system now available
giving you complete control over how customers browse and search for your products. Click here for details.
PriceSlider - easily filter categories by price range - only $9.99 - details here

X-Cart 4.1, X-Cart 4.2 on Windows/IIS and Linux/Apache.
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 02:02 PM.

   

 
X-Cart forums © 2001-2020