Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

removing countries


Guest

Recommended Posts

is there a quick way of mass removing countries? i want to remove all except united kingdom but want to avoid the long process of deleting one at a time

Link to comment
Share on other sites

removing countries from where?

 

If talking about drop down select there is a easy way to default to uk.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

i want to remove all countries from admin > locations > countries so that overseas customers cannot buy on my site - any ideas?

 

also how do i set it to default?

Link to comment
Share on other sites

i want to remove all countries from admin > locations > countries so that overseas customers cannot buy on my site - any ideas?

 

 

The easiest way is with PHPMyAdmin. Just check all of them then uncheck the UK. Another way is to delete them all (if their is a button in osC), then add UK back in. Just remember the details before deleting.

Link to comment
Share on other sites

Just edit includes\functions\html_output.php and amend the following bit to default ALL country LOVs to your shops country.

 

after:

// Creates a pull-down list of countries

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

 

Add:

if ( strlen($selected)==0 ) $selected = STORE_COUNTRY;

 

 

Also see:

 

UK-Based osCommerce 2.2 http://addons.oscommerce.com/info/2816

& Pull down UK county list http://addons.oscommerce.com/info/5889

 

You could edit create account & address files to remove country field, better would be to let them put it, then test in checkout & deny there, otherwise they may ignore country as they cant set it.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...