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)
-   -   Need Help, I'm trying to move Search bar to left column, got (https://forum.x-cart.com/showthread.php?t=10073)

SonnyZ 10-28-2004 03:39 PM

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

shan 10-29-2004 02:48 AM

so what wont work ? what happens ?

SonnyZ 10-29-2004 04:41 PM

well, right after the last step, i reload my store page in my browser, and the whole page goes white. Blank. :?

shan 10-30-2004 08:19 AM

you must have added some code in wrong or deleted something that you shouldnt have. check your code again

Yang Xu 10-30-2004 10:53 PM

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.

RSimpson 11-30-2004 01:14 AM

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.