osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

adding a pulldown menu in the search info box

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-02-2004, 10:38 AM
developer_x's Avatar
Active Member
 
Join Date: Nov 2004
Location: Digital Infoway
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
developer_x
Default adding a pulldown menu in the search info box

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 12-18-2004, 01:55 AM
developer_x's Avatar
Active Member
 
Join Date: Nov 2004
Location: Digital Infoway
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
developer_x
Default RE: adding a pulldown menu in the search info box

i have done it atlast. now i'm abt to complete the next task.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 09:51 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax