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)
-   -   Index page without categories but all the rest with (https://forum.x-cart.com/showthread.php?t=16294)

Funinc 08-31-2005 09:45 PM

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

pauldodman 08-31-2005 11:37 PM

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.

Funinc 09-01-2005 08:04 PM

Thanks, worked great....it does exactly as I tell it....amazing


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

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