osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Display matching categories in search results

This is a discussion on Display matching categories in search results within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Display matching categories in search results For OsCommerce 2.2 rc1 This will display matching categories results where the name matches ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 05-02-2008, 06:00 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,967
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Display matching categories in search results

Display matching categories in search results

For OsCommerce 2.2 rc1

This will display matching categories results where the name matches the search, if you have the category description mod

(http://www.oscommerce.com/community/contributions,2343), there is code to include that too.
Also included is code if you have my hide categories contribution (http://addons.oscommerce.com/info/5907).

Included here is an sql query to add a setting in admin to control category search.

If a category is selected in the search, then only that (and subcategories if option set) are searched.
The from / to date filters are also applied.
I`ve also added an option to search categories only.

During the writing of this I found what appears to me to be a vulnerability in the search form in OSC2.2 rc1 where it could be used by a malicious attacker to inject sql or code.
I have added a trap in advanced_search_result.php for this.

Forum started for this at http://forums.oscommerce.com/index.php?showtopic=301065

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Highlight search results altenter osCMax v2 Customization/Mods 2 06-08-2007 05:01 AM
Search not showing results. JonCloud420 osCMax v2 Installation issues 0 09-03-2006 07:59 PM
Which page do I edit for results of product display countingsheep osCMax v2 Customization/Mods 6 06-29-2006 06:52 PM
modifing meta_tags.php to help search results? Redeye_Joe osCMax v2 Customization/Mods 1 02-20-2006 07:08 AM
Remove 'Buy Now' button in AABox template Search Results DigitalPimp osCMax v2 Installation issues 4 09-01-2005 08:11 AM


All times are GMT -8. The time now is 12:49 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax