This is a discussion on adding a pulldown menu in the search info box within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; hi all, my client wants to modify the search info box. he wants to display a drop down menu consisting ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| hi all, my client wants to modify the search info box. he wants to display a drop down menu consisting of all the possible values of a field say "x" of products table. after some research i came to know dat the drop down menu of categories works thru the usage of 2 functions. 1---tep_draw_pull_down_menu( ) [dont remember the parameters.sorry] 2---function tep_get_categories($categories_array = '', $parent_id = '0', $indent = '') i saw the usage of both on the advance_search.php page. i somehow showed the categories drop down menu on the search info box. now i want to make a similar drop down menu inside the search info box. user will select an option from it to do search. firstly i thought it would be nice if i make a fuction similar to function no 2 which would retrieve the field 'x' from products table. i made one but when i tried to access the main page i got this message in the left column: ************** Fatal error: Maximum execution time of 30 seconds exceeded in c:\web\catalog\includes\functions\database.php on line 44 Fatal error: Maximum execution time of 30 seconds exceeded in c:\web\catalog\includes\functions\sessions.php on line 37 Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0 ********* then i hit upon another idea. i just change the orignal database query of the funtion (function tep_get_categories($categories_array = '', $parent_id = '0', $indent = '')) . instead of: $categories_query = tep_db_query("select c.categories_id, cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where parent_id = '" . (int)$parent_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); now it says: $categories_query = tep_db_query("select c.categories_id, p.products_price from " . TABLE_CATEGORIES . " c, " . TABLE_PRODUCTS . " p, " . TABLE_CATEGORIES_DESCRIPTION . " cd where parent_id = '" . (int)$parent_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); i thought if it works with the products_field of products table, it will work with any other field 2. but i get the same error again. some one kindly help me. i have to get this task done ASAP. |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| i have done it atlast. now i'm abt to complete the next task. |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding cool menu and keeping the catorory menu??? | Kyle_Bassett | osCMax v2 Customization/Mods | 0 | 10-18-2005 09:17 AM |
| Adding a "Go" button next to the Search box! | pthurmond | osCMax v1.7 Discussion | 3 | 01-05-2005 11:46 AM |
| Main body text size/size of search box/adding img to footer | thecandypam | osCommerce 2.2 Modification Help | 1 | 07-10-2004 10:58 AM |
| making the catalog menu same style as admin menu | starchild | osCommerce 2.2 Modification Help | 0 | 06-01-2003 04:42 AM |
| Adding outside links to info boxes | chardae | osCommerce 2.2 Modification Help | 2 | 11-15-2002 09:46 AM |