osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Advanced Search - Attributes

This is a discussion on Advanced Search - Attributes within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; (I have tried to contact the author of this contrib directly, but I need to get an answer ASAP because ...


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 04-14-2008, 08:21 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 Advanced Search - Attributes

(I have tried to contact the author of this contrib directly, but I need to get an answer ASAP because where I work everything is due yesterday, so I'm also posting it here...)

I have installed Adam's advanced search by attributes function and it works well. However, the search results are different from what I expected, and I am not sure if it is my database, or the way the code is written. (I think that it is the code.)

I have two attributes: size and color. Lets say that I want to search for all products that are 2" wide and that are also black. So I select the "2 inch" wide option in the "size" attribute and I also select the "black" option in the "color" attribute.

The search returns ALL items that are in the 2" category (meaning all colors and not just black) and ALSO ALL black products (meaning all sizes and not just 2" wide).

So in short, when you try to narrow the search query by selecting more than one attribute, then search query instead makes the search results broader instead of narrower.

This could be my database, but I think that the attribute data is good. If it is the search script, how do I modify it to do what I am needing it to do?

The problem I think is that the search returns product attributes with the OR operator rather than the AND (e.g. it will search for colour = blue OR size = 10) rather than AND. But I don’t know where I have to change these operators.
I hope you can help me, I’ve tried the whole week but I couldn’t solve the problem but didn’t find any solution.

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
Advanced Search - Attributes michael_s New osCommerce Contributions 0 03-10-2008 09:11 AM
Advanced Search - Attributes michael_s New osCommerce Contributions 0 11-03-2007 01:30 PM
Advanced Search - Attributes michael_s New osCommerce Contributions 0 10-24-2007 04:01 AM
Advanced Search - Attributes michael_s New osCommerce Contributions 0 05-09-2007 02:53 PM
Advanced Search - Attributes michael_s New osCommerce Contributions 0 05-09-2007 01:16 PM


All times are GMT -8. The time now is 03:36 AM.


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