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

admin / user layout variance - looking for code

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-28-2006, 10:13 PM
 
tom7678 tom7678 is offline
 

Member
  
Join Date: Sep 2004
Location: Las Vegas
Posts: 14
 

Default admin / user layout variance - looking for code

I am setting my admin section to a width of x and my customer section to a width of y.

considering the rectangle_top.tpl template controlls both sections I was looking for an example of code using the {if} statement that will allow for the differenciation.

thanks in advance.
__________________
X-Cart version 4.0.3
Reply With Quote
  #2  
Old 05-29-2006, 04:37 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

{if $usertype eq "C"}

display customer code

{else}

display admin code

{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-29-2006, 06:57 AM
 
tom7678 tom7678 is offline
 

Member
  
Join Date: Sep 2004
Location: Las Vegas
Posts: 14
 

Default

Quote:
Originally Posted by balinor
{if $usertype eq "C"}

display customer code

{else}

display admin code

{/if}

Thank you.
__________________
X-Cart version 4.0.3
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 07:04 AM.

   

 
X-Cart forums © 2001-2020