Change the Default Country on the Signup Form

This method allows you to select the country, but changes the default to the United States. This only affects create_account.php and not the address_book_process.php, checkout_payment_address.php, checkout_shipping_address.php and .

Edit catalog/templates/aabox/content/create_account.tpl.php

Find this code:

 echo tep_get_country_list('country')

Modify code:

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

The following sections were taken from the MS2 guide, and need to be modified for MAX

This next example changes the default country to the United States in the country dropdown box and makes the Country static:

Edit the following files:

catalog/includes/functions/html_output.php and look around line 289:

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

Change To:

 $countries_array = array(array('id' => '223', 'text' => 'United States'));

Using these methods, you can change the default country to any one on the list in the form.

 
changing_default_country_in_signup_page.txt · Last modified: 2007/12/28 21:51 by michael_s
Host with the osCMax experts
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki