Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

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.

  • Bookmark at
  • Bookmark "Change the Default Country on the Signup Form" at Digg
  • Bookmark "Change the Default Country on the Signup Form" at Furl
  • Bookmark "Change the Default Country on the Signup Form" at Reddit
  • Bookmark "Change the Default Country on the Signup Form" at Google
  • Bookmark "Change the Default Country on the Signup Form" at StumbleUpon
  • Bookmark "Change the Default Country on the Signup Form" at Technorati
  • Bookmark "Change the Default Country on the Signup Form" at Facebook
  • Bookmark "Change the Default Country on the Signup Form" at Twitter
  • Bookmark "Change the Default Country on the Signup Form" at Slashdot
changing_default_country_in_signup_page.txt ยท Last modified: 2007/12/28 22:51 (external edit)
You are here: startchanging_default_country_in_signup_page
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0