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)
-   -   Editing templates also edits admin pages! (https://forum.x-cart.com/showthread.php?t=43671)

mida68 11-14-2008 12:12 PM

Editing templates also edits admin pages!
 
I think perhaps we are editing templates at the wrong level - we have done a good job of putting the site together but I fear we may be using the wrong set.

For example, when editing the Member Login buttons for the site, the admin page member login buttons change! We figured out some using an if/then statement but is this the way to go - is there a chance there we are editing at the root level when we should be somewhere else?

balinor 11-14-2008 12:21 PM

Re: Editing templates also edits admin pages!
 
Unfortunately some are shared :( Use this in those types of templates to only show it on the customer side:

{if $usertype eq "C"}
customer only code here
{else}
admin code here
{/if}

mida68 11-14-2008 12:42 PM

Re: Editing templates also edits admin pages!
 
Oh, OK, well at least we were editing in the right place, we did use that code its very useful


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

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