![]() |
Need Help, I'm trying to move Search bar to left column, got
I'm trying to move the search function to the left column, right above or below the Catergories section. Customer Support gave me this, but eveytime i do it, i check on the browser and the whole page is white.
1. Create sonny_search.tpl file with the following contents: {capture name=menu} {include file="customer/search.tpl"} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_search menu_content=$smarty.capture.menu } 2. Upload this file into your <xcart_dir>/skin1/ directory. 3. Modify your <xcart_dir>/skin1/customer/home.tpl file, namely: insert the following code: {include file="sonny_search.tpl"} into the place you want, for example, immidiately after: {include file="customer/special.tpl"} 4. Modify your <xcart_dir>/skin1/customer/search.tpl file, it should contain the following code: <TABLE border=0 cellPadding=0 cellSpacing=0> <form method="get" action="search.php" name=productsearchform> <tr> <td width=20></td> <td valign="middle"> <input type="text" name="substring" size="16" value="{$smarty.get.substring|escape}"> </td> <td valign="middle"> {include file="buttons/search_head.tpl"} </td> </tr> <tr> <td colspan=3 align="center"><u>{$lng.lbl_advanced_search}</u></td> </tr> </form> </TABLE> 5. Do not forget to remove the following code: {if $usertype eq "C"} { include file="customer/search.tpl" } {/if} from your <xcart_dir>/skin1/head.tpl file. // you can just comment it out, like that: {*{if $usertype eq "C"} { include file="customer/search.tpl" } {/if}*} -------------------------------------------------- I can't seem to get it to work, i've followed the directions numerous times. I'm not sure what Version i'm using, I just bought x-cart a few days ago and got the "Reliable" version. Please Help |
so what wont work ? what happens ?
|
well, right after the last step, i reload my store page in my browser, and the whole page goes white. Blank. :?
|
you must have added some code in wrong or deleted something that you shouldnt have. check your code again
|
The codes seem OK for me. If the page is blank, I think that you may miss either "<", or ">" somewhere. You can try step by step to go, not do all at once.
|
It worked for me.
|
All times are GMT -8. The time now is 09:42 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.