Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

country drop-down


kevinmiami

Recommended Posts

Posted

When people are registering, does anyone know how to make it default to "United States" instead of "please

select" on the COUNTRIES pulldown? 99.99% of my customers will be from the US and it's annoying for them to hunt for the country on this list

 

***************************************

I already tried this - didnt work:

php echo tep_get_country_list('country','223')

***************************************

Posted
When people are registering, does anyone know how to make it default to "United States" instead of "please

select" on the COUNTRIES pulldown? 99.99% of my customers will be from the US and it's annoying for them to hunt for the country on this list

 

***************************************

I already tried this - didnt work:

php echo tep_get_country_list('country','223')

***************************************

 

hello vince I notice you are still having some problems the way I did it is this go to your admin>Locations/Taxes>Countries and delete all of the countries except "United States" I hope that helps

 

and also on your Taxes part go to your Admin>Locations/Taxes>Zones and you should see only your state which is "Florida" on the right you should see Details click on "details" then click on insert Country should be set to "United States" and Zone should be set to "Florida" that will keep everyone from getting taxed if they are not in Flordia.

 

I hope that helps

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted
hello vince I notice you are still having some problems the way I did it is this go to your admin>Locations/Taxes>Countries and delete all of the countries except "United States" I hope that helps

 

and also on your Taxes part go to your Admin>Locations/Taxes>Zones and you should see only your state which is "Florida" on the right you should see Details click on "details" then click on insert Country should be set to "United States" and Zone should be set to "Florida" that will keep everyone from getting taxed if they are not in Flordia.

 

I hope that helps

Yes, I finally fixed the tax problem using the method you gave me , THANK YOU :)

 

now for this problem - see original post on this thread... an advice?

Posted
Yes, I finally fixed the tax problem using the method you gave me , THANK YOU :)

 

now for this problem - see original post on this thread... an advice?

 

 

Vince please look at my first line before I was talking about the Tax part

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted
Vince please look at my first line before I was talking about the Tax part

well that would be easy, except once in a while i get an order from another country and i dont want to miss out on those

Posted

have a look at this contribution, you can select what countries to populate for your store.

http://www.oscommerce.com/community/contributions,3607

and you do not want to delete the existing countries from the database because some other contributions or tips rely on the countries identifiers. And have a look on the world zones too you may need it.

http://www.oscommerce.com/community/contributions,1792

just keep a backup of your database before installing.

Posted
well that would be easy, except once in a while i get an order from another country and i dont want to miss out on those

 

simply go to includes/functions/html_output.php

 

find:

function tep_get_country_list($name, $selected = '', $parameters = '') {

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

 

change to:

 

function tep_get_country_list($name, $selected = '', $parameters = '') {

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

 

to get rid of please select.

 

and then use your

 

tep_get_country_list('country','223')

 

or

 

$country = 223;

tep_get_country_list('country');

Treasurer MFC

Archived

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

×
×
  • Create New...