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

If satment on the condition of admin or customer.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-01-2008, 01:22 AM
 
johnnybparts johnnybparts is offline
 

Newbie
  
Join Date: Jan 2008
Posts: 6
 

Default If satment on the condition of admin or customer.

I would like to set two conditions and its dependant on either if it is a customer or admin viewing the site.

an example for skin1/rectangle_top.tpl.

I would like everybody who visits the site to see it as a center justified window with a width of 1000 pixels.

<table class="Container" cellpadding="0" cellspacing="0" width="{$width|default:"1000"}">

if its an admin, i would like it 100% center justified.

<table class="Container" cellpadding="0" cellspacing="0" width="{$width|default:"100%"}">

this is just for an example,
how would i call out the admin / or customer state.

how would i word the {if} {/if} statment..

Thank you.
__________________
X-Cart - Version 4.1.9
Moondogs Tabbed products mod.

Thank you to:
BCSE &
Green Leaf Media
Reply With Quote
  #2  
Old 02-01-2008, 02:44 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: If satment on the condition of admin or customer.

You would use:
{if $usertype eq "C"}
for customers
and
{if $usertype eq "A"}
for Admin
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 02-01-2008, 11:59 AM
 
johnnybparts johnnybparts is offline
 

Newbie
  
Join Date: Jan 2008
Posts: 6
 

Default Re: If satment on the condition of admin or customer.

Thank you Paul.
__________________
X-Cart - Version 4.1.9
Moondogs Tabbed products mod.

Thank you to:
BCSE &
Green Leaf Media
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:13 PM.

   

 
X-Cart forums © 2001-2020