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)
-   -   disabling location.tpl from working on home.php (https://forum.x-cart.com/showthread.php?t=9441)

chrisinoz 09-20-2004 04:02 AM

disabling location.tpl from working on home.php
 
Hi

I would like it that location.tpl does not work on home.php but through the rest of the site as usual.

I noticed many xcart sites where this happens.

eg this site

http://www.signaturejewelers.com/xcart/customer/home.php

You will see there is no location.tpl showing but at

http://www.signaturejewelers.com/xcart/customer/home.php?cat=252

location.tpl works as it should

So location.tpl has been disabled ONLY at home.php.

Anyone can assist here?

Cheers
Chris
Australia

chrisinoz 09-20-2004 04:15 AM

I think my answer has been posted in an earlier discussion under

How do I take the breadcrumb trails off the home page only?

I shall give it a try....unless there is a better answer.

Cheers

Chris

TelaFirma 09-20-2004 04:30 AM

Not pretty but it works....

In /customer/home.tpl look for the line
Code:

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

{if $main eq "catalog" and $current_category.category eq ""}
{else}
{include file="location.tpl"}
{/if}


This will also give you the option of inserting something else right before the {else} if you wanted to include something besides the location.tpl rather than just not displaying it at all.

chrisinoz 09-20-2004 05:00 AM

Hi TelaFirma

Much appreciated. Did the job!

Got my demo up and now I have 5 carts waiting from clients. Am on steep and speedy learning curve.

Fortunately clients don't want them alll tomorrow!

Chrees

Chris
Australia


All times are GMT -8. The time now is 12:53 AM.

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