chrometweaks.org

Were is a good FREE iPage web hosting service?

Click Here To View All Answers...


First question I have is Were is a good FREE iPage web hosting service? Hoping for any comment. Another question on my mind: I have a link to a page in the WIKI that tells how to move USA to the top of the country dropdown menu when creating a new customer account. Now that the WIKI's gone, I can't find it anywhere in the Knowledge Base or the Forum..

Can someone remind me how to do this? Thanks!!..

Comments (12)

Hmm... I need to find out myself. I don't know what is the right answer. I'll do some Googling and get back to you if I find an useful answer. You should email the people at iPage as they probably can help you..

Comment #1

Thanks Melinda!.

These changes work great great with the standard installation of OsCommerce..

Have you by chance ever implemented this with the B2B Suite? The changes work great with create_account.php, but they don't seem to work with create_account_b2b.php which is the account creation page for "resellers" in the B2B Suite...

Comment #2

I don't know about b2b...email me the file and I'll look at it..



Remind me of this post too...getting old you know!..

Comment #3

Which country code do I need to make this work to more the UK to the top?.

I cant find that number code for the United Kingdom..

Comment #4

Hi I have just tried the above code and it does not seem to work. The US one does so I dont think it is my OSCommerce setup...

Comment #5

You can also do this to add USA as top choice to any country pulldown:.

To add United States at the top of the country drop down box.

Line 289:.

Open catalog/includes/html_output.php and find the following line.

Code:.

$countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));.

Add after it:.

$countries_array[] = array('id' => '223', 'text' => 'United States');.

So you have.

$countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));.

$countries_array[] = array('id' => '223', 'text' => 'United States');.

Or.

$countries_array = array(.

Array('id' => '', 'text' => PULL_DOWN_DEFAULT),.

Array('id' => '223', 'text' => 'United States') );.

Should work as well..

Comment #6

I have a link to a page in the WIKI that tells how to move USA to the top of the country dropdown menu when creating a new customer account. Now that the WIKI's gone, I can't find it anywhere in the Knowledge Base or the Forum..

Can someone remind me how to do this? Thanks!!..

Comment #7

Here you go:.

To move United States to the top of the drop down box on the create_account.php page..

Line 289:.

Open catalog/includes/html_output.php and find the following line.

Code:.

$countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));.

Change To:.

$countries_array = array(array('id' => '223', 'text' => 'United States'));.

Ok it gets rid of the 'Please Select' bit of the drop down but United States appears at the top!.

This leaves "Please Select" and highlightes the United States in the drop down box leaving the United States in the same order.

Catalog/create_account.php about line 442.

Echo tep_get_country_list('country').

Change To:.

Echo tep_get_country_list('country', '223');..

Comment #8


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