Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to remove COUNTRY?


Sejo

Recommended Posts

My website is only national and I do not want the customers to add their country while registering.

 

There is no problem changing othe options,

define('ACCOUNT_GENDER', 'false');

define('ACCOUNT_DOB', 'false');

define('ACCOUNT_COMPANY', 'false');

define('ACCOUNT_SUBURB', 'false');

define('ACCOUNT_STATE', 'false');

 

Where can I remove the country options?

Link to comment
Share on other sites

Steve,

 

Could you please post a 'recepy' for doing this in PhpMyAdmin?

I tried once in Admin, removing country-by-country, and it does take some time..

But I'm not sure if this will remove the country entirely? I don't want my store to display country anywhere.

Petter - Arktisk Pudder

Link to comment
Share on other sites

In functions/html_output.php

+====================+

// Creates a pull-down list of countries

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

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

$countries = tep_get_countries();

for ($i=0; $i<sizeof($countries); $i++) {

$countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);

}

 

return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters);

}

+====================+

 

Maybe this could be removed?

Petter - Arktisk Pudder

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...