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

Index page without categories but all the rest with

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-31-2005, 09:45 PM
 
Funinc Funinc is offline
 

Senior Member
  
Join Date: Sep 2002
Location: CA
Posts: 108
 

Default Index page without categories but all the rest with

I currently have a index page built in dreamweaver and I want to use it as my index page inside the cart but if I edit home.tpl and take out the categories.tpl, dialog.tpl etc. then when I go to the product pages etc it does not show either.

I want the index page to have something different then the rest of the pages.

Does anyone have any suggestions?

I want to do this to make everything uniform thru out the site.

Thanks for the help

Timm
Reply With Quote
  #2  
Old 08-31-2005, 11:37 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,060
 

Default

Firstly, don't be put off - once you get the hang of what does what, you can make x-cart fit your design.

Getting rid of things on the home.tpl page is only going to remove them from the rest of the site.

What you need to do is use if statements if you don't want them.

For example, if you don't want the location bar on the home page, but you do throughout the site, use this.

replace:
Code:
{include file="location.tpl"}

with:

Code:
{if $main eq "catalog" and $current_category.category eq ""} {else} {include file="location.tpl"} {/if}
and just do the same with the other includes.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 09-01-2005, 08:04 PM
 
Funinc Funinc is offline
 

Senior Member
  
Join Date: Sep 2002
Location: CA
Posts: 108
 

Default

Thanks, worked great....it does exactly as I tell it....amazing
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 03:53 AM.

   

 
X-Cart forums © 2001-2020