Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

country listings sort order


christia

Recommended Posts

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

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

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

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'));

Link to comment
Share on other sites

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']);

}

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...