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)
-   -   Customer Template Separation (https://forum.x-cart.com/showthread.php?t=6668)

exclamationlabs 03-11-2004 09:51 AM

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

exclamationlabs 03-11-2004 10:08 AM

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.


All times are GMT -8. The time now is 07:37 AM.

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