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

If statement to determine admin page vs. customer page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-29-2007, 01:54 AM
 
tpl tpl is offline
 

Member
  
Join Date: Nov 2007
Posts: 19
 

Default If statement to determine admin page vs. customer page

I made some edits to my menu.tpl file, but it messes up the boxes in the admin section. how do I write an if statement to detect if you are on the customer pages or the admin pages?

Thanks.
__________________
Version 4.1.9
Reply With Quote
  #2  
Old 11-29-2007, 02:01 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: If statement to determine admin page vs. customer page

Code:
{if $usertype eq "A" || ($usertype eq "P" && $active_modules.Simple_Mode ne "")} SHOW ADMIN {else} SHOW CUSTOMER {/if}
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 11-29-2007, 12:30 PM
 
tpl tpl is offline
 

Member
  
Join Date: Nov 2007
Posts: 19
 

Default Re: If statement to determine admin page vs. customer page

perfect, thank you.
__________________
Version 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 02:21 PM.

   

 
X-Cart forums © 2001-2020