chrometweaks.org

How to Start Domain Booking Service just as iPage or register.com ?

Click Here To View All Answers...


Question I have... How to Start Domain Booking Service just as iPage or register.com ? Many thanks for any response. My other question... Hello Everyone!.

This is my first post ever, I have been reading thru these forums for a few months and have found that most of any problems I have had were answered here so I appreciate all the help from all of you. I now am at the point where I cannot figure something out and I could really use some help..

I see that there are people searching for a solution to the same problem I have with my site, and I would like to turn this into a contribution to give back to the community that has given me so much..

I am designing an automotive parts shop that will have over 10,000 products to start and have organized them into a category scheme like this: Make -> Model -> Year -> Engine -> PRODUCTS.

I am NOT any sort of programmer, I am a graphic designer with a knack for beating computers into submission..

I have pieced together code that I found and did a bit of creative hacking and finally come up with a solution to navigate to these products with multiple drop downs..

My problem is that I cannot seem to figure out how to get the category descriptions to show up in the boxes once they have been selected. I also cannot get the form to automatically jump to the product listing page once the last option has been chosen..

As it is now, the category id numbers show up in the boxes after they have been chosen, and you have to hit a button at the bottom of the page to jump to the product listing page..

I have this on my iPage site as /catalog/vehicle.php but I would also like to turn it into an infobox for easy placement..

Please take a look at this code and give me any help and suggestions you might have..

<?php require('includes/application_top.php');.

Echo "Vehicle Search";.

//select_box1.

If ($HTTP_GET_VARS['vehicle_make_id'] != '').

{.

$select_box1 = '<select name="vehicle_make_id" style="width: 50%"><option value="'$vehicle_make_id'" SELECTED>'$vehicle_make_id'</option></select>';.

} else {.

$vehicle_make_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='"(int)$languages_id ."' order by sort_order, cd.categories_name");.

$select_box1 = '<select name="vehicle_make_id" onChange="this.form.submit();" size="'MAX_MAKE_LIST'" style="width: 50%" >';.

If (MAX_MAKE_LIST < 2) { $select_box1 .= '<option value="">Vehicle Make</option>'; }.

While ($make_values = tep_db_fetch_array($vehicle_make_query)).

{.

$select_box1 .='<option value="'$make_values['categories_id']'"';.

$select_box1 .= '>'$make_values['categories_name']'</option>';.

}.

$select_box1 .= "</select>";.

$select_box1 .= tep_hide_session_id();.

}.

////select_box2.

If ($vehicle_make_id == '') {.

} else {.

If ($HTTP_GET_VARS['vehicle_model_id'] != '') {.

$select_box2 = '<select name="vehicle_model_id" style="width: 50%"><option value="'$vehicle_model_id'" SELECTED>'$vehicle_model_id'</option></select>';.

} else {.

$vehicle_model_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"$vehicle_make_id"' and c.categories_id = cd.categories_id and cd.language_id='"(int)$languages_id ."' order by sort_order, cd.categories_name");.

$select_box2 = '<select name="vehicle_model_id" onChange="this.form.submit();" size="'MAX_MODEL_LIST'" style="width: 50%"';.

If ($vehicle_make_id == '') { $select_box2 .= ' disabled>'; } else { $select_box2 .= '>'; }.

If (MAX_MODEL_LIST < 2) { $select_box2 .= '<option value="">Vehicle Model</option>'; }.

While ($model_values = tep_db_fetch_array($vehicle_model_query)).

{.

$select_box2 .='<option value="'$model_values['categories_id']'"';.

$select_box2 .= '>'$model_values['categories_name']'</option>';.

}.

$select_box2 .= "</select>";.

$select_box2 .= tep_hide_session_id();.

}.

}.

//select_box3.

If ($vehicle_model_id == '') {.

} else {.

If ($HTTP_GET_VARS['vehicle_year_id'] != '').

{.

$select_box3 = '<select name="vehicle_year_id" style="width: 50%"><option value="'$vehicle_year_id'" SELECTED>'$vehicle_year_id'</option></select>';.

} else {.

$vehicle_year_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"$vehicle_model_id"' and c.categories_id = cd.categories_id and cd.language_id='"(int)$languages_id ."' order by sort_order, cd.categories_name");.

$select_box3 = '<select name="vehicle_year_id" onChange="this.form.submit();" size="'MAX_YEAR_LIST'" style="width: 50%"';.

If ($vehicle_model_id == '') { $select_box3 .= ' disabled>'; } else { $select_box3 .= '>'; }.

If (MAX_YEAR_LIST < 2) { $select_box3 .= '<option value="">Vehicle Year</option>'; }.

While ($year_values = tep_db_fetch_array($vehicle_year_query)).

{.

$select_box3 .='<option value="'$year_values['categories_id']'"';.

$select_box3 .= '>'$year_values['categories_name']'</option>';.

}.

$select_box3 .= "</select>";.

$select_box3 .= tep_hide_session_id();.

}.

}.

//select_box4.

If ($vehicle_year_id == '') {.

} else {.

If ($HTTP_GET_VARS['vehicle_engine_id'] != '').

{.

$select_box4 = '<select name="vehicle_engine_id" style="width: 50%"><option value="'$vehicle_engine_id'" SELECTED>'$vehicle_engine_id'</option></select>';.

} else {.

$vehicle_engine_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"$vehicle_year_id"' and c.categories_id = cd.categories_id and cd.language_id='"(int)$languages_id ."' order by sort_order, cd.categories_name");.

$select_box4 = '<select name="vehicle_engine_id" onChange="this.form.submit();" size="'MAX_ENGINE_LIST'" style="width: 50%"';.

If ($vehicle_year_id == '') { $select_box4 .= ' disabled>'; } else { $select_box4 .= '>'; }.

If (MAX_ENGINE_LIST < 2) { $select_box4 .= '<option value="">Vehicle Engine</option>'; }.

While ($engine_values = tep_db_fetch_array($vehicle_engine_query)).

{.

$select_box4 .='<option value="'$engine_values['categories_id']'"';.

$select_box4 .= '>'$engine_values['categories_name']'</option>';.

}.

$select_box4 .= "</select>";.

$select_box4 .= tep_hide_session_id();.

}.

}.

// Display All Drop-downs.

$cPath = $vehicle_make_id"_"$vehicle_model_id"_"$vehicle_year_id"_"$vehicle_engine_id;.

Print "<form name='vehcle' method='get' action=''>"$select_box1"<br>"$select_box2"<br>"$select_box3"<br>"$select_box4"</form>";.

If ($vehicle_engine_id != '') { print "<form name='go' method='get' action='"tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)"'><input name='cPath' type='submit' value='"$cPath"'>"; }.

?>.

Thanks in advance,.

-E..

Comments (6)

I'm stumped. I'm not so sure what is the right answer to your question. I'll do some investigation and get back to you if I bump into an anything. You should email the people at iPage as they probably could assist you..

Comment #1

Im very intrested in this. Did you get it working?..

Comment #2

I had a chance to install this. Im going to take closer look. You code populated the drop down boxes with my inventory..

Intresting.....

Comment #3

To get it to work as a infobox you will have to create another php file in /catalog/includes/boxes.

And in that file you just made you need to have a iframe in there to link to the new search php so when the drop downs reload it just reloads the iframe and not the whole page..

Pros - Faster.

Cons - Wont work with older browsers..

Comment #4

Hi,.

I've done it on a iPage website without frames and no page refreshes, see this for an example:.

Https://web.satlink....segroup.com.au/.

Change the 'product type' and the 'colour' options change. It's just a few Javascript arrays, and using the 'onChange' event.

......... onChange="JavaScript:updateColourBox();".

Peter..

Comment #5

I also need to do this, peter could you post some more code please?.

Katie..

Comment #6

Hi,.

See my post today in this thread:.

Http://forums.oscomm...showtopic=92656.

Some references to an example of how to do hierarchical dropdowns..

Peter..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.