Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

default country from the country putdown list


vat

Recommended Posts

In create_account.php find this line:

<td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>

and replace it with this:

<td class="main"><?php echo tep_get_country_list('country', '38') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>

This will fix the New Account form. You will need to do this in every other file that uses the Country dropdown as well.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...

This is a fabulous fix, but what I still don't quite understand is where the country list is coming from. What if a new country comes along and I need to add it, or a country changes its name? Is the source of the country list top secret or what?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...