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

how to edit out search box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-15-2007, 08:50 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default how to edit out search box

Hi all,

I am tryin to edit out, ie remove the search box from the store.
I have read through the manual and the forums here but nothing I have found seems to be working.

I have gont to skins/head.tpl and tried to remove the line of code

{ include file="customer/search.tpl" }

have also done {*nclude file="customer/search.tpl"*}

as well as removing

<tr>
<td class="HeadLine" height="22">
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}
</td>
<td class="HeadLine" align="right">
{if ($usertype eq "C" || $usertype eq "B") && $all_languages_cnt gt 1}
<form action="home.php" method="get" name="sl_form">
<input type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.Q UERY_STRING|amp}" />
<table cellpadding="0" cellspacing="0">
<tr>
<td style="padding-right: 5px;" class="TopLabel">{$lng.lbl_select_language}:</td>
<td><select name="sl" onchange="javascript: this.form.submit();">
{section name=ai loop=$all_languages}
<option value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected="selected"{/if}>{$all_languages[ai].language}</option>
{/section}
</select></td>
</tr>

In addition I saw a post that said to remove the search box code from the
customer/home.tpl
I found no reference to it there- however I did find a reference to it at
customer/home_main.tpl
But I was still not able to remove the search box.

Can someone please tell me where I would remove this feature, and or if it appears I am doing it correctly please let me know so I can open a support ticket about why I am unable to remove this feature if I am following the correct procedures.

Thanks to all that takethe time to anser this post.

Scott V
linux
4.18
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #2  
Old 10-15-2007, 09:21 AM
 
balinor balinor is offline
 

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

Default Re: how to edit out search box

You simply comment out the box wherever it appears:

{* {include file="customer/search.tpl"} *}

You may need to clear your templates cache to see it take effect, or your browser cache.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-15-2007, 01:32 PM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: how to edit out search box

Thanks for your reply however that does not work either. As indicated in my post I have already tried that. I also cut and pasted your line of code into the head.tpl with no success. I get an internal error message. Any other suggestions, are greatly appreciated.
Thanks
Scott V
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #4  
Old 10-15-2007, 01:34 PM
 
balinor balinor is offline
 

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

Default Re: how to edit out search box

But did you follow my suggestion of clearing your template cache?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-15-2007, 04:03 PM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: how to edit out search box

yes, cleared cache, tried it in IE and firefox on two different machines.
If I am understanding the manual correctly the only area I should have to edit to remove the search box is in the reference to the search box in the head.tpl file.

The message I get says "500 internal server error "
thoughts?, open a ticket?

Scott
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #6  
Old 10-15-2007, 05:08 PM
 
balinor balinor is offline
 

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

Default Re: how to edit out search box

Don't know what to tell you Scott, that is a very basic operation that should not result in a fatal error. Are you using the internal template editor or some other method?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 10-16-2007, 03:02 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: how to edit out search box

yes I agree. It is a very basic operation , that I have done on other items with no problems, that is what is why I find it so frustrating.To open up a support ticket for this seems a waste. I am using the internal template editor.I am going to wait until the AM and see if for some reason a new day will change things but have my doubts.
Thanks for the reply
Best

Scott V
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #8  
Old 10-16-2007, 05:25 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: how to edit out search box

Scott,

Don't use the internal template editor, ever.

There is no UNDO.
No color coding of the code.
No way to save-as multple versions while you're messing around.
No way to quickly and easily copy/paste from other sources...

etc...

RUn, don't walk, get yourself a good FTP client and a linked and/or integrated text editor. Some are free, or cheap. There are more than a few threads here about ftp and text editing tools.

I couldn't IMAGINE building a house without power tools. Using the built-in template editor is like building a house with hand tools.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #9  
Old 10-16-2007, 05:26 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: how to edit out search box

PS -- I think you should restore your template to what it was yesterday. Then make your edits. Ah... FTP client for backups. You need tools to do this.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #10  
Old 10-16-2007, 07:35 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: how to edit out search box

I agree,
I usually do use my text editor, and ftp to make changes but that is where I got the inital error message, so I then went to the internal editor and used that.
Both gave me the same error message.

However- Success-
I came in this AM and tried this again through my ftp/client and this time it went through correctly.
I have no idea what caused either editor to give me the error message but at this point am just happy that the problem has dissappeared.

Many thanks to both you and Balinor for taking the time to repsond to my q

Best

Scott V
__________________
scott v
x cart version 4.1.8 (Unix)
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 05:57 AM.

   

 
X-Cart forums © 2001-2020