| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
how to edit out search box | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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) |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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) |
|||||||
#4
|
|||||||
|
|||||||
![]() But did you follow my suggestion of clearing your template cache?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() 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) |
|||||||
#6
|
|||||||
|
|||||||
![]() 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 |
|||||||
#7
|
|||||||
|
|||||||
![]() 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) |
|||||||
#8
|
|||||||
|
|||||||
![]() 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 |
|||||||
#9
|
|||||||
|
|||||||
![]() 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 |
|||||||
#10
|
|||||||
|
|||||||
![]() 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) |
|||||||
|
|||
X-Cart forums © 2001-2020
|