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)
-   -   Which template files should I edit? (https://forum.x-cart.com/showthread.php?t=29328)

Skistapr 03-02-2007 02:16 PM

Which template files should I edit?
 
I am trying to set up xcart for a client's new website and I am a bit stumped. I would like to basically have the default blue themed xcart setup in the content area but would like to use my own layout for the heading and footer. See image below:
http://skistaproductions.com/prototype/template-withcart.jpg
What I need to know is what template files I need to edit to do this. If possible I would like to continue using the xcart default for the admin panel but this isn't nearly as important as using the client's layout for the customer end.

balinor 03-02-2007 03:14 PM

Re: Which template files should I edit?
 
First place to start is here:

http://forum.x-cart.com/showthread.php?t=21529

Skistapr 03-02-2007 03:28 PM

Re: Which template files should I edit?
 
Thanks for the help Balinor - I think I understand which files I should be editing but I want to make sure.

Quote:

rectangle_top.tpl - this controls the overall width and height of your layout. By default, it is set to 100% high and 100% width. You can set it to a fixed width (like 900px) or a percentage. Keep in mind that this is a shared template between the admin and customer sides, so you might want to put in an {if} statement to show something different for each side.
Could you let me know what variable I should check using the if statement to see if it is on the client side or admin side?

Quote:

customer/home.tpl - this is the main template that controls the customer side of the store. In it are the main components of a web page including the <title> and <head> tags, along with the table structure of the actual layout. You will also see all of the other templates that are called within it. This is where you would move around the side menu boxes such as the news and categories menus.
I'm guessing this is the file where I will enter the custom code in to format the header and the footer and everything else?

balinor 03-02-2007 03:40 PM

Re: Which template files should I edit?
 
The {if} statement looks like this:

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

home.tpl controls the overall layout, but it calls different templates within it for the header and footer.

Skistapr 03-03-2007 08:40 AM

Re: Which template files should I edit?
 
Thanks again Balinor, you have saved me a ton of headaches


All times are GMT -8. The time now is 10:56 AM.

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