christia Posted February 19, 2007 Share Posted February 19, 2007 I want to have the United States listed first when a user creates a profile. 99% of the customers are from the US. Any thoughts on this? Link to comment Share on other sites More sharing options...
Guest Posted February 19, 2007 Share Posted February 19, 2007 NO KIDDING..... amazing that they put it alphabetically and did not put the US on top... If and when I EVER get Easy Populate to work, I plan on using OSC here...but US only.... Maybe there is a way to just eliminate all the rest..... I saw it in the DB but was apprehensive to remove...smile I keep an eye on this thread... SteveRF Perdido Beach, Alabama Link to comment Share on other sites More sharing options...
Guest Posted February 19, 2007 Share Posted February 19, 2007 NO KIDDING..... amazing that they put it alphabetically and did not put the US on top...If and when I EVER get Easy Populate to work, I plan on using OSC here...but US only.... Maybe there is a way to just eliminate all the rest..... I saw it in the DB but was apprehensive to remove...smile I keep an eye on this thread... SteveRF Perdido Beach, Alabama see http://www.oscommerce.com/community/contributions,3607 Link to comment Share on other sites More sharing options...
christia Posted February 21, 2007 Author Share Posted February 21, 2007 So to confirm... I looked at the link above, that contribution will allow me to change the order of listed countries, correct? Before I dig in to those extensive changes I wanted to make sure that's what you are saying. I didn't see it in the readme notes. :) Thanks. Link to comment Share on other sites More sharing options...
jasonabc Posted February 21, 2007 Share Posted February 21, 2007 the quickest/easiest way to achieve this is to open /includes/functions/html_output.php. Find this line: $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT)); and replace with this: $countries_array = array(array('id' => '223', 'text' => 'United States')); Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
jasonabc Posted February 21, 2007 Share Posted February 21, 2007 NO KIDDING..... amazing that they put it alphabetically and did not put the US on top... Kinda defeats the purpose of having an alphabetical list really..... To remove all the countries completely except USA, make the change I posted above and then (still in /includes/functions/html_output.php) remove/comment out this: for ($i=0, $n=sizeof($countries); $i<$n; $i++) { $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']); } Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Guest Posted February 21, 2007 Share Posted February 21, 2007 So to confirm... I looked at the link above, that contribution will allow me to change the order of listed countries, correct? Before I dig in to those extensive changes I wanted to make sure that's what you are saying. I didn't see it in the readme notes. :) Thanks. No need to, because you said: If and when I EVER get Easy Populate to work, I plan on using OSC here...but US only.... So you only want to display US for the countries so there will be no pull-down menu with that module. The module controls countries to be active for your store. This means during checkout the customer cannot simply set the shipping address to some weird location where the merchant cannot ship. There is no field to control the order. In contrast what Jason mentioned will work but someone can modify the form elements with some different country/zone and pass through. Link to comment Share on other sites More sharing options...
jasonabc Posted February 22, 2007 Share Posted February 22, 2007 NO KIDDING..... amazing that they put it alphabetically and did not put the US on top...If and when I EVER get Easy Populate to work, I plan on using OSC here...but US only.... You might also want to install this..... http://www.oscommerce.com/community/contributions,4639 Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Guest Posted March 2, 2007 Share Posted March 2, 2007 Loved the html_output.php modification. Really did the trick. Happy customers. Link to comment Share on other sites More sharing options...
mtnrocker Posted March 3, 2007 Share Posted March 3, 2007 Thanks Jason!!! :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.