| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
If satment on the condition of admin or customer. | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thank you Paul.
__________________
X-Cart - Version 4.1.9 Moondogs Tabbed products mod. Thank you to: BCSE & Green Leaf Media |
|||||||
|
|||
X-Cart forums © 2001-2020
|