$regAccount['fieldData']['bill_fax'] = $regAccount['fieldData']['fax'];
// Otherwise if there's only one registrant, use their info, what's there
+
+ /*
+ * There is a problem with the state and country selectors due to the $acct array
+ * not having that data. If needed, use the account ID and grab the account record
+ * for editing then use the data from there for all this instead.
+ */
} elseif (count($this->cart['accounts']) == 1) {
$acct = current($this->cart['accounts']);
$regAccount['fieldData']['bill_fname'] = $acct['fname'];
$regAccount['fieldData']['bill_addr1'] = $acct['addr1'];
$regAccount['fieldData']['bill_addr2'] = $acct['addr2'];
$regAccount['fieldData']['bill_city'] = $acct['city'];
- $regAccount['fieldData']['bill_state'] = $acct['state'];
+// $regAccount['fieldData']['bill_state'] = $acct['state'];
$regAccount['fieldData']['bill_zip'] = $acct['zip'];
- $regAccount['fieldData']['bill_country'] = $acct['country'];
+// $regAccount['fieldData']['bill_country'] = $acct['country'];
$regAccount['fieldData']['bill_phone'] = $acct['phone'];
$regAccount['fieldData']['bill_fax'] = $acct['fax'];
}
</div>
{/if}
-
{if $haveCart}
<form id="checkoutForm" href="{$regUrl}" method="post" class="glm-row">
<input type="hidden" name="page" value="checkoutProcess">
<select name="bill_state">
<option value=""></option>
{foreach $regAccount.fieldData.bill_state.list as $s}
- <option value="{$s.value}"{if $regAccount.fieldData.bill_state.value == $s.value} selected="selected"{/if}>
+ <option value="{$s.value}"{if $s.default} selected="selected"{/if}>
{$s.name}
</option>
{/foreach}