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

Search button not working !!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-10-2004, 02:01 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default Search button not working !!!

Hello,
I wanted that my search menu should appear as separate menu under categories menu hence I modified home.tpl & search.tpl files.

It appeared correctly on home page but strangely when I click "Go" button nothing is happens but if I press enter then it's start search correctly !!

What could be the problem ?

Here is my code for search.tpl
Code:
{* $Id: search.tpl,v 1.14 2003/08/13 06:49:07 svowl Exp $ *} {capture name=menu} <TABLE border=0 cellPadding=0 cellSpacing=0> <form method="get" action="{$xcart_web_dir}/customer/search.php" name=productsearchform> <tr> <td width="112" height="30" rowspan="2" valign="top">{$lng.lbl_search}:</td> <td width="340" valign="middle"> <input type="text" name="substring" size="14" value="{$smarty.get.substring|escape}"> </td> </tr> <tr> <td height="22" valign="middle"> <div align="center"><a href="javascript:document.productsearchform.submit()">{include file="buttons/search_head.tpl"}</a></div></td> </tr> <tr> <td height="29" colspan="2" valign="top"> <div align="center"><u>{$lng.lbl_advanced_search}</u></div></td> </tr> </form> </TABLE> {/capture} { include file="menu.tpl" dingbats="dingbats_search.gif" menu_title=$lng.lbl_search menu_content=$smarty.capture.menu }
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #2  
Old 03-13-2004, 04:22 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default

*BUMP*

Any one can help me please? I think it's not very big problem just a java script problem I think
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #3  
Old 03-14-2004, 03:28 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default

Ok I mangaged to solve the problem.
After adding my custom search_2.tpl. I didn't remove original search.tpl link from head.tpl & this was making clash in home.php by creating duplicate form name.
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
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 02:58 PM.

   

 
X-Cart forums © 2001-2020