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

Need Help, I'm trying to move Search bar to left column, got

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-28-2004, 03:39 PM
 
SonnyZ SonnyZ is offline
 

Member
  
Join Date: Oct 2004
Posts: 14
 

Default 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
__________________
X-Cart - 4.1.8
Apache/1.3.33 (Unix)
Reply With Quote
  #2  
Old 10-29-2004, 02:48 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

so what wont work ? what happens ?
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 10-29-2004, 04:41 PM
 
SonnyZ SonnyZ is offline
 

Member
  
Join Date: Oct 2004
Posts: 14
 

Default

well, right after the last step, i reload my store page in my browser, and the whole page goes white. Blank.
__________________
X-Cart - 4.1.8
Apache/1.3.33 (Unix)
Reply With Quote
  #4  
Old 10-30-2004, 08:19 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you must have added some code in wrong or deleted something that you shouldnt have. check your code again
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 10-30-2004, 10:53 PM
 
Yang Xu Yang Xu is offline
 

Senior Member
  
Join Date: May 2004
Location: Portland, Oregon
Posts: 175
 

Default

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.
__________________
Carts n Tools.com
- New Root HTML Generator
- Templates | Add-Ons | Services
- XCart 4.0.x
Reply With Quote
  #6  
Old 11-30-2004, 01:14 AM
 
RSimpson RSimpson is offline
 

Member
  
Join Date: Apr 2004
Posts: 23
 

Default

It worked for me.
__________________
X Cart Version 4.0.7
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 11:01 AM.

   

 
X-Cart forums © 2001-2020