Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Discrepancy in search results depending on login status


Guest

Recommended Posts

We have a very odd issue with the /catalog/advanced_search_result.php page.

 

If a user is not logged in, they can browse from page to page of the search results without any problem. The URL becomes: /catalog/advanced_search_result.php?keywords=iec&p=1, /catalog/advanced_search_result.php?keywords=iec&p=12, and so on, as they browse results 1-10, results 11-20 etc.

 

However, if they log in, and then try exactly the same thing:

 

The first page is fine- it shows the correct number of results. However if they then click either the Next link or page 2 (or indeed any results page link) what happens is that every product in the store shows up (over 2000) so we end up with about 200 search page links instead of say 11 or 12.

 

The weird thing is that this is the exact same page which is used whether or not a user is logged in.

 

The only difference is that if the user is logged in, the URL becomes different when you click Next or page 2 or 3 or whatever.

 

You get (for example) /catalog/advanced_search_result.php?products_id=2571&cPath=46_406&p=1

 

Instead of /catalog/advanced_search_result.php?keywords=iec&p=1

 

So it looks as if it's just ignoring the search query for any page other than the initial one, if the user is logged in.

 

Please, any ideas as to what has caused this and what can be done?

Link to comment
Share on other sites

  • 2 weeks later...

We have a very odd issue with the /catalog/advanced_search_result.php page.

 

If a user is not logged in, they can browse from page to page of the search results without any problem. The URL becomes: /catalog/advanced_search_result.php?keywords=iec&p=1, /catalog/advanced_search_result.php?keywords=iec&p=12, and so on, as they browse results 1-10, results 11-20 etc.

 

However, if they log in, and then try exactly the same thing:

 

The first page is fine- it shows the correct number of results. However if they then click either the Next link or page 2 (or indeed any results page link) what happens is that every product in the store shows up (over 2000) so we end up with about 200 search page links instead of say 11 or 12.

 

The weird thing is that this is the exact same page which is used whether or not a user is logged in.

 

The only difference is that if the user is logged in, the URL becomes different when you click Next or page 2 or 3 or whatever.

 

You get (for example) /catalog/advanced_search_result.php?products_id=2571&cPath=46_406&p=1

 

Instead of /catalog/advanced_search_result.php?keywords=iec&p=1

 

So it looks as if it's just ignoring the search query for any page other than the initial one, if the user is logged in.

 

Please, any ideas as to what has caused this and what can be done?

 

Does anyone know if and how this can be fixed? Please?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...