X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   If statement to determine admin page vs. customer page (https://forum.x-cart.com/showthread.php?t=35789)

tpl 11-29-2007 01:54 AM

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.

PhilJ 11-29-2007 02:01 AM

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}


tpl 11-29-2007 12:30 PM

Re: If statement to determine admin page vs. customer page
 
perfect, thank you.


All times are GMT -8. The time now is 07:42 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.