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

Customer Template Separation

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-11-2004, 09:51 AM
 
exclamationlabs exclamationlabs is offline
 

Newbie
  
Join Date: Aug 2003
Posts: 2
 

Default Customer Template Separation

I love X-Cart, and can usually do alot with it. One of my only gripes about template customizations is that the /customer area uses the same templates as the admin area.. Or vice versa..

So when I go hog wild changing the /customer interface I *always* break the admin interface, then I have to seperate EVERY dialog.tpl, and menu.tpl. In general I grumble alot..

Does anyone have a pre-made solution (commercial or otherwise) for making the customer area use its own templates without touching the admin templates? Or... Having the admin area use its own templates seems to make the most sense to me, what do I know though?

Thanks for any pointers.

--Brian
Reply With Quote
  #2  
Old 03-11-2004, 10:08 AM
 
exclamationlabs exclamationlabs is offline
 

Newbie
  
Join Date: Aug 2003
Posts: 2
 

Default

Interesting..

As I was writing that post, I came up with an idea.

I added
Code:
{if $usertype == "C"} {include file="customer/menu.tpl"} {else} ... normal contents of menu.tpl {/if}

In both dialog, and menu.tpl, and this saved me TONS of work changing all the /customer references to those templates.
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 07:41 AM.

   

 
X-Cart forums © 2001-2020