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

disabling location.tpl from working on home.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-20-2004, 04:02 AM
 
chrisinoz chrisinoz is offline
 

eXpert
  
Join Date: Aug 2004
Location: Australia
Posts: 248
 

Default 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
Reply With Quote
  #2  
Old 09-20-2004, 04:15 AM
 
chrisinoz chrisinoz is offline
 

eXpert
  
Join Date: Aug 2004
Location: Australia
Posts: 248
 

Default

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
Reply With Quote
  #3  
Old 09-20-2004, 04:30 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

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.
Reply With Quote
  #4  
Old 09-20-2004, 05:00 AM
 
chrisinoz chrisinoz is offline
 

eXpert
  
Join Date: Aug 2004
Location: Australia
Posts: 248
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:32 AM.

   

 
X-Cart forums © 2001-2020