Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

changing_default_country_in_signup_page [2007/12/28 22:51] (current)
Line 1: Line 1:
 +==== 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:
 +<code php>
 + echo tep_get_country_list('​country'​)
 +</​code>​
 +Modify code:
 +<code php>
 + echo tep_get_country_list('​country',​ '​223'​);​
 +</​code>​
 +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:
 +<code php>
 + ​$countries_array = array(array('​id'​ => '',​ '​text'​ => PULL_DOWN_DEFAULT));​
 +</​code>​
 +Change To:
 +<code php>
 + ​$countries_array = array(array('​id'​ => '​223',​ '​text'​ => '​United States'​));​
 +</​code>​
 +
 +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 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