Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search Results BUG?


dejaiman

Recommended Posts

I have copied a product into 3 different categories. When a search has been carried out that retrieves that product, the results show the product three times. This should not be as it is the same product. Does this happen to anyone else, and can it be fixed?

Link to comment
Share on other sites

Any ideas to fix this though?

USE DISTINCT in SQL QUERY to give only UNIQUE results when resultset has more then one identical results.

 

ie, check code for query that is generating results in advanced_search, and modify it to include DISTINCT

 

eg, if original query is "select a, b , c from table 1, ... " to get unique results you may modify as

"Select distinct a, b, c from table 1, .... "

 

That should do the trick for you, short of time to check query, give it a shot, and if i get time, would post the code here.

 

Cheers

Best Regards,
Gaurav

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...