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

How To Search Using URL...?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-23-2006, 09:50 PM
 
mindful mindful is offline
 

Newbie
  
Join Date: Dec 2005
Posts: 4
 

Default How To Search Using URL...?

Hello,

We just completed upgrade from X-Cart 3.5.14 to 4.0.17 but in the process found that a feature on which we have come to rely is broken.

Under the old 3.5.14 search module we were able to create a search URL like:

Code:
http://www.<our_site_name>.com/store/customer/search.php?substring=Wind+Chimes

and get back all products containing the string "Wind Chimes" in their product name or descriptions regardless of product type and which category they resided in.

Under the improved search module it appears that additional fields will be required in the URL to accomplish this and we have experimented with several different flavors but have only managed to bring up a search form. Some of the attempts look like:

Code:
http://www.<our_site_name>.com/store/search.php?substring=Wind+Chimes&by_fulldescr="Y" http://www.<our_site_name>.com/store/search.php?substring=Wind+Chimes&posted_data[by_fulldescr]=Y

The intent and advantage of setting up these html search strings was that we could use them in pages anywhere on or off the site and bring people directly to the results they were seeking. That way we could list several product "Quick links" so people would be spared a lot of typing in the search boxes.

Can anyone provide the exact list of query string parameters that can be used to accomplish this (and other) searches through use of html links...?

Thanks for your help.
Reply With Quote
  #2  
Old 02-23-2006, 10:13 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

Hello,

Carrie of BCSE has graciously provided this:
http://www.bcsengineering.com/store/catalog/Search_Results_via_a_URL_in_40x__FREE-p-148.html
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #3  
Old 02-24-2006, 02:28 PM
 
mindful mindful is offline
 

Newbie
  
Join Date: Dec 2005
Posts: 4
 

Default

hooter,

Thanks for the info. I downloaded it and made the adjustments to search.php as indicated in their accompanying text file.

It seems to work okay for some single words against the product title. But for multiple words as in:

http://www.<sitename>.com/store/search.php?search=Wind+Chimes

It produces inconsistent results. I suspect it has something to do with which fields are being searched but have not yet been able to pinpoint what combinations work. I also noted that for each failed search, the search screen is displayed and the option to search additional fields (short description and full descruption) by checking the corresponding boxes becomes available with the search term pre-populated. This yielded better results but then requires other than a single click interaction from the Customer.

Are you aware of a way to ensure that all fields [title, shortdescr, fulldescr] get searched when feed the search term as above?

Thanks again for your help.

-mindful
Reply With Quote
  #4  
Old 02-28-2006, 03:23 AM
  shan's Avatar 
shan shan is offline
 

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

Default

i think there may be something in custom mods forum about this too
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:18 AM.

   

 
X-Cart forums © 2001-2020