Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search include subcategories


Leopardo

Recommended Posts

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

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

Archived

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

×
×
  • Create New...