Jump to content

AdamPGT

Members
  • Content count

    78
  • Joined

  • Last visited

1 Follower

About AdamPGT

  • Birthday 02/07/1985

Profile Information

  1. AdamPGT

    Make/Model/Year Navigation

    This contribution has been disabled pending the author, of the JS Chained Select menu being used, posting a GPL lisence on his website for the script. --Adam
  2. You can see this contribution in action here: http://www.gforceauto.com. I haven't templated the site as of 19 April 2006, but should have the templating done within the next week or so. The contribution can be found here: http://www.oscommerce.com/community/contributions,4178 Please feel free to post questions or comments, I'll respond as quickly as possible. Thanks, Adam
  3. AdamPGT

    Year/Make/Model - Finally!

    Alright, well I'm going to add this to the contributions and start a support thread. Feel free to make edits to this and update the contribution. :) --Adam
  4. So I've needed this functionality for some time and finally got something to work using the chained select code from yxscripts.com and some basic PHP. Now the code is a little sloppy so if anyone would like to help clean it up before it is released as a contribution that'd be great. This is the DB Heirarchy I'm using: -> Make ----> Model -------> Years For the years, I'm using ranges for specific generations. Here is the JS/PHP content for the document head: <!-- Start Navigation --> <script language="javascript" src="chainedselects.js"> /*********************************************** * Chained Selects script- By Xin Yang (http://www.yxscripts.com/) * Script featured on/available at http://www.dynamicdrive.com/ * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ </script> <?php echo " <script language=\"javascript\"> //var hide_empty_list=true; //uncomment this line to hide empty selection lists var disable_empty_list=true; //uncomment this line to disable empty selection lists addListGroup(\"vehicles\", \"make\");\n addOption(\"make\", \"Select a Make\", \"Select a Make\", \"\"); //Empty starter option "; $make = "SELECT categories.categories_id, categories_name FROM categories, categories_description WHERE categories.parent_id = '0' AND categories_description.categories_id = categories.categories_id ORDER BY sort_order"; $makeResult = mysql_query($make); while ($makeRow = mysql_fetch_array($makeResult)){ $mkid = $makeRow['categories_id']; $mkname = $makeRow['categories_name']; echo "addList(\"make\", \"" . $mkname . "\", \"" . $mkid . "\", \"" . $mkname . "\"); "; echo "addOption(\"" . $mkname . "\", \"Select a Model\", \"Select a Model\", \"\"); //Empty starter option "; $model = "SELECT categories.categories_id, categories_name FROM categories, categories_description WHERE categories.parent_id = '" . $mkid . "' AND categories_description.categories_id = categories.categories_id ORDER BY sort_order"; $modelResult = mysql_query($model); while ($modelRow = mysql_fetch_array($modelResult)){ $mdid = $modelRow['categories_id']; $mdname = $modelRow['categories_name']; echo "addList(\"" . $mkname . "\", \"" . $mdname . "\", \"" . $mdid . "\", \"" . $mdname . "\"); "; echo "addOption(\"" . $mdname . "\", \"Select a year\", \"\", 1); "; $year = "SELECT categories.categories_id, categories_name FROM categories, categories_description WHERE categories.parent_id = '" . $mdid . "' AND categories_description.categories_id = categories.categories_id ORDER BY sort_order"; $yearResult = mysql_query($year); while ($yearRow = mysql_fetch_array($yearResult)){ $yrid = $yearRow['categories_id']; $yrname = $yearRow['categories_name']; echo "addOption(\"" . $mdname . "\", \"" . $yrname . "\", \"http://www.gforceauto.com/index.php?cPath=" . $mkid . "_" . $mdid . "_" . $yrid . "\"); "; } } } echo "</script>"; ?> <script language="javascript"> function openLink(url) { if (url != "") { location.href = url; } else { alert("Please select a site."); } } </script> <!-- End Navigation --> Also, this script has cookie functionality so the selections will stick after visiting different pages, so the <BODY> tag needs the following: <body onload="initListGroup('vehicles', document.forms[0].make, document.forms[0].model, document.forms[0].year, 'cs')"> Now the form for the categories box: <form> <table align=\"center\"> <tr> <td><select name=\"make\" style=\"width:160px;\"></select></td> </tr> <tr> <td><select name=\"model\" style=\"width:160px;\"></select></td> </tr> <tr> <td><select name=\"year\" style=\"width:160px;\" onchange=\"openLink(this.value)\"></select></td> </tr> </table> </form> I'm using BTS so my categories.php looks like this: <?php /* $Id: categories.php,v 1.24 2003/06/09 22:09:55 hpdl Exp $ modified by paulm_nl 2003/12/23 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ $boxHeading = BOX_HEADING_CATEGORIES; $corner_left = 'rounded'; $corner_right = 'square'; $box_base_name = 'categories'; // for easy unique box template setup (added BTSv1.2) $box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2) $boxContent .= "<form> <table align=\"center\"> <tr> <td><select name=\"make\" style=\"width:160px;\"></select></td> </tr> <tr> <td><select name=\"model\" style=\"width:160px;\"></select></td> </tr> <tr> <td><select name=\"year\" style=\"width:160px;\" onchange=\"openLink(this.value)\"></select></td> </tr> </table> </form>"; include (bts_select('boxes', $box_base_name)); // BTS 1.5 ?> You may see the menu in action here: http://www.gforceauto.com (I haven't even started templating anything, nor do I have all makes and models entered etc.) Have fun and any input is appreciated. Thanks, Adam
  5. Alright, I would like to add the fields and functions from the Credit Card payment method to the Installments payment method. Has anyone done this that could give me some help? --Adam
  6. AdamPGT

    Fedex Zone Contrib version 2.0 ready

    I made these changes, but still get $0.00 for the shipping cost when I try and checkout. Any idea? --Adam
  7. AdamPGT

    Fedex Zip Zones 1.3 released

    I just installed v2.2 of the FedEx Zones Contribution and everything seemed to run smoothly, no errors on install or any visible errors for that matter. But when I checkout using a real address I get a shipping price of $0.00 and it doesn't show the different shipping options (i.e. FedEx Ground, FedEx 2Day etc.). Also, the product weighs 42lbs as well so I know that's not the problem. Any help would be greatly appreciated.
  8. Alright, I've followed all of the install instructions, but it gives a price of $0.00 for shipping. Any ideas why? --Adam
  9. Has anyone done this with the FedEx Zone Shipping Contrib? My supplier charges me never charges me less than $9.99 for FedEx Ground.....anyway I can also incorporate this? Thanks! --Adam
  10. Alright, here's the deal. I'm using the BTS contribution, which I love but I'm having some problems getting the Wishlist mod to work with BTS. Everything seems to appear fine. But when I try to move the product from my wishlist to my shopping cart or delete the product or email a friend about it the page just reloads. However, before I moved it to the BTS format it worked fine. Here's some links to my PHPS files so you can see the code that I have for the Wishlist in BTS format. http://store.gforceauto.com/wishlist.phps http://store.gforceauto.com/templates/osC/...shlist.tpl.phps I can't figure out what I'm doing wrong. I appreciate the help! --Adam
  11. AdamPGT

    Wishlist 2.3 w/BTS Problem

    Hello! Can anyone help or not?????????????????????????????????? --Adam :angry:
  12. AdamPGT

    Wishlist 2.3 w/BTS Problem

    TTT Everything displays properly, but all of the functions are broken it appears. The email friend function, add to cart and delete from wishlist don't work. I've created some PHPS files for viewing: http://store.gforceauto.com/wishlist.phps http://store.gforceauto.com/templates/osC/...shlist.tpl.phps --Adam
  13. Hey everyone, I run GForce Automotive which is an Online Automotive Performance Shop, obviously I use osCommerce. I have been doing some searching in hopes to find a contribution which will enable a customer to search by Year Make and Model of their vehicle. Unfortunately, no one has made a contribution for those of us in need of such. So right now I have a javascript menu that should work: http://www.gforceauto.com/menu/menu_test.php Now, if anyone here who is familiar enough with the PHP and MySQL structure of osCommerce would like to help me finish this off I would appreciate it. Let me know! --Adam
  14. AdamPGT

    Wishlist 2.3 w/BTS Problem

    What do you mean?
  15. AdamPGT

    Wishlist 2.3 w/BTS Problem

    Can ANYONE help with this?!?!?!
×