Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I edit the countries for my shop?


Jged

Recommended Posts

This will bring the UK and Ireleand to the top of the list

 

in includes/functions/general.php

 

right after the country array is loaded from the db:

 

while ($countries_values = tep_db_fetch_array($countries)) {

$countries_array[] = array('countries_id' => $countries_values['countries_id'],

'countries_name' => $countries_values['countries_name']);

}

add the following code:

 

array_unshift($countries_array,

array('countries_id' => 222, 'countries_name' => "United Kingdom"),

array('countries_id' => 103, 'countries_name' => "Ireland"));

 

I think this is the code for Ireland, not positive though

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

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

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

Date of Birth PullDown http://addons.oscommerce.com/info/3778

 

 

You can set the default shown country with

 

change

 

tep_get_country_list('country')

 

to

 

tep_get_country_list('country',STORE_COUNTRY)

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...