getParentBlock()->formErrors; $formErrors = (!empty($formErrors['billing_errors'])) ? $formErrors['billing_errors'] : array(); $helper = Mage::helper('onestepcheckout/checkout'); $dataHelper = Mage::helper('onestepcheckout'); $billingFields['firstname'] = '

'; $billingFields['lastname'] = '

'; ?> isCustomerLoggedIn() || in_array('email_registered', $formErrors)): ?>
'. ((in_array('email_registered', $formErrors)) ? $this->__('Email address already registered. Please login now or use a different email address.') : $this->__('Invalid email address.')) .'
'; ?> isCustomerLoggedIn()): ?>
'; ?> settings['exclude_telephone']):?>
'; ?> settings['exclude_address']):?> helper('customer/address')->getStreetLines()-1; $_i<=$_n; $_i++){ $addressFields .= '
'; } $billingFields['street'] = $addressFields; ?> helper('customer/address')->getStreetLines()-1; $_i<=$_n; $_i++){ $addressFields .= ''; //$addressFields .= (($_i != $this->helper('customer/address')->getStreetLines()-1) ? '
': ''); } $billingFields['street'] = '
'.$addressFields.'
'; ?> settings['exclude_country_id']):?>
'.$this->getCountryHtmlSelect('billing').' '; ?> settings['default_country'].'" />'; ?> settings['exclude_region']): ?>
'; ?> settings['exclude_city']):?>
'; ?> settings['exclude_zip']): ?>
'; ?> settings['exclude_company']): ?>
'; ?> settings['exclude_fax']): ?>
'; ?> getLayout()->createBlock('euvat/widget_taxvat'); } } catch (Exception $e) { } if(!is_object($_taxvat)){ $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat'); } ?> isEnabled() && !$this->isCustomerLoggedIn()): ?> setTaxvat($this->getQuote()->getCustomerTaxvat()) ->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml(); ?> isVatAttributeVisible()) : ?> '.$this->__('VAT Number').'
'; ?> getLayout()->createBlock('customer/widget_dob'); } catch (Exception $e) { $_dob = false; } ?> getLayout()->createBlock('customer/widget_gender'); } catch (Exception $e) { $_gender = false; } ?> isEnabled() && !$this->isCustomerLoggedIn()): ?> '.$_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml().' '; ?> isEnabled() && !$this->isCustomerLoggedIn()): ?> '.$_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml().' '; ?> isCustomerLoggedIn() && $helper->showCreateAccount()): ?> '; ?> showPasswords() && !$this->isCustomerLoggedIn()): ?> hidePasswords()) ? 'style="display: none;"':'').'>


'; ?> isCustomerLoggedIn() && $this->customerHasAddresses()):?>
clearDash($this->getQuote()->getBillingAddress()->getSaveInAddressBook())) ? 'checked="checked"':'').' class="checkbox" />
'; ?> '; ?> getBillingFieldsOrder($billingFields);?> $value):?>