Forums / Bug Reports / [Done v1.3.8] include subcategories checkbox on advanced search screen not preserved

[Done v1.3.8] include subcategories checkbox on advanced search screen not preserved

Locked

Views: 1,874

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
27 May 2007, 3:12 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

[Done v1.3.8] include subcategories checkbox on advanced search screen not preserved

If you modify any of the other fields on this screen, search, then do a back, the field values you used are preserved. This checkbox is not; it is always reset to true.

Heres' the fix: go to includes/modules/pages/advanced_search_result/header_php.php line 250 (in 1.3.7) and paste in

   if (!isset($_GET['inc_subcat'])) {
     $_GET['inc_subcat'] = '0';
   }

swguy

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

27 May 2007, 6:19 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.8] include subcategories checkbox on advanced search screen not preserved

Might want to add below that ...

if (!isset($_GET['search_in_description'])) {
  $_GET['search_in_description'] = '0';
}

Thanks for the heads up!

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!