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

Which template files should I edit?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-02-2007, 02:16 PM
 
Skistapr Skistapr is offline
 

Newbie
  
Join Date: Mar 2007
Posts: 9
 

Default 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.
__________________
Version 4.1.5
Reply With Quote
  #2  
Old 03-02-2007, 03:14 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Which template files should I edit?

First place to start is here:

http://forum.x-cart.com/showthread.php?t=21529
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-02-2007, 03:28 PM
 
Skistapr Skistapr is offline
 

Newbie
  
Join Date: Mar 2007
Posts: 9
 

Default 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?
__________________
Version 4.1.5
Reply With Quote
  #4  
Old 03-02-2007, 03:40 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-03-2007, 08:40 AM
 
Skistapr Skistapr is offline
 

Newbie
  
Join Date: Mar 2007
Posts: 9
 

Default Re: Which template files should I edit?

Thanks again Balinor, you have saved me a ton of headaches
__________________
Version 4.1.5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 02:28 AM.

   

 
X-Cart forums © 2001-2020