osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Specify Search Criteria with dropdown box(not by Attributes)

This is a discussion on Specify Search Criteria with dropdown box(not by Attributes) within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello All Is it possible to have drop down boxes in the advance search page for certain criteria of keywords ...


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 02-13-2005, 09:11 PM
zel zel is offline
New Member
 
Join Date: Feb 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
zel
Default Specify Search Criteria with dropdown box(not by Attributes)

Hello All

Is it possible to have drop down boxes in the advance search page for certain criteria of keywords etc

EG Year - 2000, 2001, 2004
Person - Fred, George
Make - Epson, Cannon


I have tried the contribution "Advanced Search Atrributes" but this shows all attributes. A Bit confusing I think.

The idea behind this is that all products will have certain keywords to help people search for the right product eg year and then a person perhaps (as above). This will then bring up all products with the same year and person as per the words in their product description.

I hope this makes sense. At the present time the search keywords do not seem to sort the years even though they are different in the product description.

I am using Osc Max V1.7 and I am using easy populate to update my cart.

Thanking you in advance.

Regards
Zel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-14-2005, 02:49 PM
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

I am using oscommerce 2ms2.2. But I think I can help you a bit. I had to enable the client to search tablets with respect to their strength. I made a new table. Inserted the values of strength in it. Then I used this function in search.php and advanced_search.php

function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false)


at the right place and in the right way to extract the fields of the strenght from the database into the drop down menu. Then I was able to perform search on it.

Example at: www.paylessdrugstores.com

Most of the contributions made for oscommerce work for oscmax 1.7 too. So give my procedure a try.
Best of luck.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-14-2005, 03:05 PM
zel zel is offline
New Member
 
Join Date: Feb 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
zel
Default

Thank you for your help, may I impose a little more.....

My knowledge of Mysql is limited but learning fast, could you give me an example of what the new table to insert into mysql looked like.

Also, apologies for the 50 questions, the function in the search.php etc if you have three categories eg name, person, year would you put this in separately for each category (so to speak)

Thank you for you help

Regards
Zel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-14-2005, 11:21 PM
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

Quote:
Originally Posted by zel
Thank you for your help, may I impose a little more.....

My knowledge of Mysql is limited but learning fast, could you give me an example of what the new table to insert into mysql looked like.
This is the query I used to make a table for strengths.

Quote:
CREATE TABLE strengths (
strengths_id int(5) NOT NULL auto_increment,
strengths_value decimal(10,2) default NULL,
PRIMARY KEY (strengths_id)
) TYPE=MyISAM;
If you install phpmyAdmin, manipulating the database becomes very easy.
The new table needs to be defined in the includes/database_tables.php of catalog and/or (depends upon your requirements) admin folder.

Quote:
define('TABLE_STRENGTHS','strengths');
Quote:
Originally Posted by zel
Also, apologies for the 50 questions, the function in the search.php etc if you have three categories eg name, person, year would you put this in separately for each category (so to speak)
I am not getting you much. Any how you can create multiple dropdown menus with the same function. That's why we use functions.

Feel free to come there. And do read the oscDox guide for customizing your store.
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
product attributes - "option type" dropdown missin test_fsait osCMax v2 Features Discussion 12 02-13-2007 06:05 PM
Catagorie dropdown has disappeared? delphi1 osCommerce 2.2 Discussion 2 01-18-2006 04:28 AM
Full text search in advanced search Anonymous osCMax v1.7 Discussion 0 04-15-2004 03:00 PM
Search by Attributes raveoverseas osCommerce 2.2 Modification Help 0 07-31-2003 09:56 AM
How toCreate Dropdown menu Anonymous osCommerce 2.2 Modification Help 0 10-24-2002 09:28 PM


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


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