Leopardo Posted February 15, 2009 Share Posted February 15, 2009 Hi! Is there a way to get rid of the "Include subcategories" checkbox and just always include them? Thx, sorry if ive missed something while searching Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 15, 2009 Share Posted February 15, 2009 See the SiteSearch Plus contribution in My Addons. it should do what you want. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Leopardo Posted February 15, 2009 Author Share Posted February 15, 2009 Thx for your reply Jack :) Unfortunately, the problem is a little deeper. I want to import a search bar to the top of my page, so the code lookes like this (its not fihished yet): <?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . "Kategorie:" . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => "Wszystkie kategorie")))) . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: 180px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif') . tep_draw_checkbox_field('inc_subcat', '1', true) . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'; So, i just want to get rid of that "tep_draw_checkbox_field" and always keep it checked, but since i'm new to oscommerce, i really don't have a single clue what to do, even with the help of your contribution. May be someone can advise me what to do? Thx PS. Btw, Jack, the after-search e-mail thing is awesome! Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 15, 2009 Share Posted February 15, 2009 Thanks. In the code you provided, change this part tep_draw_checkbox_field('inc_subcat', '1', true) to this tep_draw_hidden_field('inc_subcat','1') Be careful not to overwrite the periods on either side of that code. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Leopardo Posted February 15, 2009 Author Share Posted February 15, 2009 U'r my savior! :) Thank you, it worked perfectly Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.