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

Replace Xcart Search Box with Google Search

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-17-2007, 08:53 PM
 
sohaibkhan sohaibkhan is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 78
 

Default Replace Xcart Search Box with Google Search

hello,

I have a Google Custom Search, I would like to replace X-cart original search box with my Google Custom Search engine box, how can I do that.

Thanks
__________________
Current version: 4.1.5 Centos 4x
Reply With Quote
  #2  
Old 06-18-2007, 04:10 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Replace Xcart Search Box with Google Search

Open up the template where the search box is displayed (customer/search.tpl) and replace the default X-Cart form with your form.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-18-2007, 11:23 AM
 
sohaibkhan sohaibkhan is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 78
 

Default Re: Replace Xcart Search Box with Google Search

Thanks for your response, I really do appreciate that.

I have replace the search box but when the user search on the page it shows the search results but it shows the search results at the bottom of the results it shows my main page, i didnt get that.. Can I just display the search results only.
__________________
Current version: 4.1.5 Centos 4x
Reply With Quote
  #4  
Old 06-18-2007, 11:32 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Replace Xcart Search Box with Google Search

Sounds like an issue with Google search...afraid I can't help with that
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 06-18-2007, 04:02 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Replace Xcart Search Box with Google Search

go to http://google.com/coop/docs/cse/cref.html

scroll down to where it says "Example of a Linked CSE with results hosted on your site", it gives an example of how to accomplish what you want (seems to use an iframe)
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #6  
Old 06-18-2007, 06:31 PM
 
sohaibkhan sohaibkhan is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 78
 

Default Re: Replace Xcart Search Box with Google Search

Do you have example, I am just lost. Where should I put iframe
__________________
Current version: 4.1.5 Centos 4x
Reply With Quote
  #7  
Old 12-01-2007, 03:42 AM
 
heatmiser heatmiser is offline
 

Member
  
Join Date: Jul 2004
Posts: 17
 

Default Re: Replace Xcart Search Box with Google Search

DId you ever get this to work ? I would like to use the Google CSE
__________________
4.1.8 XCart
UK Based
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 04:35 PM.

   

 
X-Cart forums © 2001-2020