| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Search queries via a URL in version 4.0.x!! | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Search queries via a URL in version 4.0.x & 4.1.x!!
I know a lot of you need to have links to search results (like the old x-cart versions could). Now you can with this very simple mod!
In search.php (in your main X-cart directory, not in the include folder!) Find the following code: Code:
Insert this code AFTER the code you found above: Code:
To use this mod just point your browser to urls like this: http://yourdomain.com/search.php?search=SEARCHQUERYHERE If you need spaces in the query to include multiple words use + inbetween like this: http://yourdomain.com/search.php?search=SEARCH+QUERY+HERE Hope this helps some of you! Carrie Note this works in 4.1.x as well!!
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#2
|
|||||||
|
|||||||
Oooooo....nice! This gets asked for all the time....thanks Carrie!!!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
Thank you very much! I've been recently testing 4.0.17 and noticed that issue. Perfect!
What would be the syntax for searching in specific extra fields? |
|||||||||
#4
|
|||||||||
|
|||||||||
Thx
Thx, was just what i was looking for.
__________________
X-cart 4 gold PHP version 4.3.10 MySQL version 4.0.23-standard Apache version 1.3.33 (Unix) |
|||||||||
#5
|
|||||||||
|
|||||||||
Anyone have an example of the syntax to properly query an extra fields search that is linkable?
search.php?substring=somekindofsearch i'm thinking it's adding something like: &in_extrafields=13?? But I don't know...someone, please enlighten me! |
|||||||||
#6
|
|||||||||
|
|||||||||
Just a thought but dont some search engines let you have a file in root dir with a list of URL's? Ive seen this on some search engines, but not sure which ones.
Would it be possable to make a huge list of URL's using the new URL's function so i can have many more links on those search engines? Not sure if im way of mark, just a thought. Jamie
__________________
X-cart 4 gold PHP version 4.3.10 MySQL version 4.0.23-standard Apache version 1.3.33 (Unix) |
|||||||||
#7
|
|||||||||
|
|||||||||
Are you talking about a sitemap?
if so, sitemaps are common and can be beneficial to help the spiders crawl. I know there are a few sitemap mods floating around here. |
|||||||||
#8
|
|||||||
|
|||||||
Re: Search queries via a URL in version 4.0.x!!
Hi,
I've just installed and works well. Is there any possibility to use 'OR' separator word in search (as in google and oscommerce)? Example: http://www.yourdomains.com/search.php?search=tv+or+radio This way the search result would show products contains word tv in the product name and products contains word radio in the product name. Regs, Laszlo X-cart Gold, 4.019 Linux |
|||||||
#9
|
|||||||||
|
|||||||||
Re: Search queries via a URL in version 4.0.x!!
Nice one Carrie; works in 4.1.3
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ----------------------------------------------------------------------------------------------------------------------------------------- Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info |
|||||||||
#10
|
|||||||||
|
|||||||||
Re: Search queries via a URL in version 4.0.x!!
This works great in 4.1.5, thanks!
How do I set up a URL that will search only the keywords field?
__________________
Thanks - CobaltCat I would love to change the world, but they won't give me the source code. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|