Mxperts_NoRegion - Version 1.1.0

Version Notes

keine / none

Download this release

Release Info

Developer Magento Core Team
Extension Mxperts_NoRegion
Version 1.1.0
Comparing to
See all releases


Code changes from version 0.1.9 to 1.1.0

app/code/local/Mxperts/NoRegion/Block/Customer/Edit/Tab/Addresses.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Mxperts
4
+ * @package Mxperts_NoRegion
5
+ * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
6
+ * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
7
+ * @version 1.1.0
8
+ * @copyright TMEDIA cross communications, Doris Teitge-Seifert
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+
12
+ class Mxperts_NoRegion_Block_Customer_Edit_Tab_Addresses extends Mage_Adminhtml_Block_Customer_Edit_Tab_Addresses
13
+ //Mage_Adminhtml_Block_Widget_Form
14
+ {
15
+
16
+ public function initForm()
17
+ {
18
+ $customer = Mage::registry('current_customer');
19
+
20
+ $form = new Varien_Data_Form();
21
+ $fieldset = $form->addFieldset('address_fieldset', array('legend'=>Mage::helper('customer')->__("Edit Customer's Address")));
22
+
23
+ $addressModel = Mage::getModel('customer/address');
24
+
25
+ $this->_setFieldset($addressModel->getAttributes(), $fieldset);
26
+
27
+ if ($streetElement = $form->getElement('street')) {
28
+ $streetElement->setLineCount(Mage::helper('customer/address')->getStreetLines());
29
+ }
30
+
31
+ if ($regionElement = $form->getElement('region')) {
32
+ //$regionElement->setRenderer(Mage::getModel('adminhtml/customer_renderer_region'));
33
+ $regionElement->setNoDisplay(true); //Setting the State/Province field of
34
+ }
35
+
36
+ if ($regionElement = $form->getElement('region_id')) {
37
+ $regionElement->setNoDisplay(true);
38
+ }
39
+
40
+ if ($country = $form->getElement('country_id')) {
41
+ $country->addClass('countries');
42
+ }
43
+
44
+ if ($this->isReadonly()) {
45
+ foreach ($addressModel->getAttributes() as $attribute) {
46
+ $element = $form->getElement($attribute->getAttributeCode());
47
+ if ($element) {
48
+ $element->setReadonly(true, true);
49
+ }
50
+ }
51
+ }
52
+
53
+ $addressCollection = $customer->getAddresses();
54
+ $this->assign('customer', $customer);
55
+ $this->assign('addressCollection', $addressCollection);
56
+ $this->setForm($form);
57
+
58
+ return $this;
59
+ }
60
+
61
+ }
app/code/local/Mxperts/NoRegion/Block/Customer/Grid.php ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Mxperts
4
+ * @package Mxperts_NoRegion
5
+ * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
6
+ * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
7
+ * @version 1.1.0
8
+ * @copyright TMEDIA cross communications, Doris Teitge-Seifert
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+
12
+ class Mxperts_NoRegion_Block_Customer_Grid extends Mage_Adminhtml_Block_Widget_Grid
13
+ //Dont extend the class Mage_Adminhtml_Block_Customer_Grid because this class adding the missing / commented columns again into the Grid!
14
+ {
15
+
16
+ public function __construct()
17
+ {
18
+ parent::__construct();
19
+ $this->setId('customerGrid');
20
+ $this->setUseAjax(true);
21
+ $this->setDefaultSort('entity_id');
22
+ }
23
+
24
+ protected function _prepareCollection()
25
+ {
26
+ $collection = Mage::getResourceModel('customer/customer_collection')
27
+ ->addNameToSelect()
28
+ ->addAttributeToSelect('email')
29
+ ->addAttributeToSelect('created_at')
30
+ ->addAttributeToSelect('group_id')
31
+ ->joinAttribute('billing_postcode', 'customer_address/postcode', 'default_billing', null, 'left')
32
+ ->joinAttribute('billing_city', 'customer_address/city', 'default_billing', null, 'left')
33
+ ->joinAttribute('billing_telephone', 'customer_address/telephone', 'default_billing', null, 'left')
34
+ //->joinAttribute('billing_region', 'customer_address/region', 'default_billing', null, 'left')
35
+ //->joinAttribute('billing_company', 'customer_address/company', 'default_billing', null, 'left')
36
+ ->joinAttribute('billing_country_id', 'customer_address/country_id', 'default_billing', null, 'left');
37
+
38
+ $this->setCollection($collection);
39
+
40
+ return parent::_prepareCollection();
41
+ }
42
+
43
+ protected function _prepareColumns()
44
+ {
45
+ $this->addColumn('entity_id', array(
46
+ 'header' => Mage::helper('customer')->__('ID'),
47
+ 'width' => '50px',
48
+ 'index' => 'entity_id',
49
+ 'type' => 'number',
50
+ ));
51
+ /*$this->addColumn('firstname', array(
52
+ 'header' => Mage::helper('customer')->__('First Name'),
53
+ 'index' => 'firstname'
54
+ ));
55
+ $this->addColumn('lastname', array(
56
+ 'header' => Mage::helper('customer')->__('Last Name'),
57
+ 'index' => 'lastname'
58
+ ));*/
59
+
60
+
61
+ $this->addColumn('name', array(
62
+ 'header' => Mage::helper('customer')->__('Name'),
63
+ 'index' => 'name'
64
+ ));
65
+
66
+ //Our New Column for Company
67
+ /* $this->addColumn('billing_company', array(
68
+ 'header' => Mage::helper('sales')->__('Company'),
69
+ 'index' => 'billing_company'
70
+ )); */
71
+
72
+ $this->addColumn('email', array(
73
+ 'header' => Mage::helper('customer')->__('Email'),
74
+ 'width' => '150',
75
+ 'index' => 'email'
76
+ ));
77
+
78
+ $groups = Mage::getResourceModel('customer/group_collection')
79
+ ->addFieldToFilter('customer_group_id', array('gt'=> 0))
80
+ ->load()
81
+ ->toOptionHash();
82
+
83
+ $this->addColumn('group', array(
84
+ 'header' => Mage::helper('customer')->__('Group'),
85
+ 'width' => '100',
86
+ 'index' => 'group_id',
87
+ 'type' => 'options',
88
+ 'options' => $groups,
89
+ ));
90
+
91
+ $this->addColumn('Telephone', array(
92
+ 'header' => Mage::helper('customer')->__('Telephone'),
93
+ 'width' => '100',
94
+ 'index' => 'billing_telephone'
95
+ ));
96
+
97
+ $this->addColumn('billing_postcode', array(
98
+ 'header' => Mage::helper('customer')->__('ZIP'),
99
+ 'width' => '90',
100
+ 'index' => 'billing_postcode',
101
+ ));
102
+
103
+ $this->addColumn('billing_country_id', array(
104
+ 'header' => Mage::helper('customer')->__('Country'),
105
+ 'width' => '100',
106
+ 'type' => 'country',
107
+ 'index' => 'billing_country_id',
108
+ ));
109
+ // No column for Region
110
+ /* $this->addColumn->('billing_region', array(
111
+ 'header' => Mage::helper('customer')->__('State/Province'),
112
+ 'width' => '100',
113
+ 'index' => 'billing_region',
114
+ )); */
115
+
116
+ $this->addColumn('customer_since', array(
117
+ 'header' => Mage::helper('customer')->__('Customer Since'),
118
+ 'type' => 'datetime',
119
+ 'align' => 'center',
120
+ 'index' => 'created_at',
121
+ 'gmtoffset' => true
122
+ ));
123
+
124
+ if (!Mage::app()->isSingleStoreMode()) {
125
+ $this->addColumn('website_id', array(
126
+ 'header' => Mage::helper('customer')->__('Website'),
127
+ 'align' => 'center',
128
+ 'width' => '80px',
129
+ 'type' => 'options',
130
+ 'options' => Mage::getSingleton('adminhtml/system_store')->getWebsiteOptionHash(true),
131
+ 'index' => 'website_id',
132
+ ));
133
+ }
134
+
135
+ $this->addColumn('action',
136
+ array(
137
+ 'header' => Mage::helper('customer')->__('Action'),
138
+ 'width' => '100',
139
+ 'type' => 'action',
140
+ 'getter' => 'getId',
141
+ 'actions' => array(
142
+ array(
143
+ 'caption' => Mage::helper('customer')->__('Edit'),
144
+ 'url' => array('base'=> '*/*/edit'),
145
+ 'field' => 'id'
146
+ )
147
+ ),
148
+ 'filter' => false,
149
+ 'sortable' => false,
150
+ 'index' => 'stores',
151
+ 'is_system' => true,
152
+ ));
153
+
154
+ $this->addExportType('*/*/exportCsv', Mage::helper('customer')->__('CSV'));
155
+ $this->addExportType('*/*/exportXml', Mage::helper('customer')->__('XML'));
156
+ return parent::_prepareColumns();
157
+ }
158
+
159
+ protected function _prepareMassaction()
160
+ {
161
+ $this->setMassactionIdField('entity_id');
162
+ $this->getMassactionBlock()->setFormFieldName('customer');
163
+
164
+ $this->getMassactionBlock()->addItem('delete', array(
165
+ 'label' => Mage::helper('customer')->__('Delete'),
166
+ 'url' => $this->getUrl('*/*/massDelete'),
167
+ 'confirm' => Mage::helper('customer')->__('Are you sure?')
168
+ ));
169
+
170
+ $this->getMassactionBlock()->addItem('newsletter_subscribe', array(
171
+ 'label' => Mage::helper('customer')->__('Subscribe to newsletter'),
172
+ 'url' => $this->getUrl('*/*/massSubscribe')
173
+ ));
174
+
175
+ $this->getMassactionBlock()->addItem('newsletter_unsubscribe', array(
176
+ 'label' => Mage::helper('customer')->__('Unsubscribe from newsletter'),
177
+ 'url' => $this->getUrl('*/*/massUnsubscribe')
178
+ ));
179
+
180
+ $groups = $this->helper('customer')->getGroups()->toOptionArray();
181
+
182
+ array_unshift($groups, array('label'=> '', 'value'=> ''));
183
+ $this->getMassactionBlock()->addItem('assign_group', array(
184
+ 'label' => Mage::helper('customer')->__('Assign a customer group'),
185
+ 'url' => $this->getUrl('*/*/massAssignGroup'),
186
+ 'additional' => array(
187
+ 'visibility' => array(
188
+ 'name' => 'group',
189
+ 'type' => 'select',
190
+ 'class' => 'required-entry',
191
+ 'label' => Mage::helper('customer')->__('Group'),
192
+ 'values' => $groups
193
+ )
194
+ )
195
+ ));
196
+
197
+ return $this;
198
+ }
199
+
200
+ public function getGridUrl()
201
+ {
202
+ return $this->getUrl('*/*/grid', array('_current'=> true));
203
+ }
204
+
205
+ public function getRowUrl($row)
206
+ {
207
+ return $this->getUrl('*/*/edit', array('id'=>$row->getId()));
208
+ }
209
+
210
+ }
app/code/local/Mxperts/NoRegion/Helper/Data.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Mxperts
4
+ * @package Mxperts_NoRegion
5
+ * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
6
+ * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
7
+ * @version 1.1.0
8
+ * @copyright TMEDIA cross communications, Doris Teitge-Seifert
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+ class Mxperts_NoRegion_Helper_Data extends Mage_Core_Helper_Abstract
12
+ {
13
+
14
+ const XML_PATH_ENABLED = 'customer/noregion/enabled';
15
+
16
+ public function isEnabled()
17
+ {
18
+ return Mage::getStoreConfig( self::XML_PATH_ENABLED );
19
+ }
20
+
21
+ }
app/code/local/Mxperts/NoRegion/Model/Address.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Mxperts
4
+ * @package Mxperts_NoRegion
5
+ * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
6
+ * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
7
+ * @version 1.1.0
8
+ * @copyright TMEDIA cross communications, Doris Teitge-Seifert
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+
12
+ class Mxperts_NoRegion_Model_Address extends Mage_Customer_Model_Address
13
+ {
14
+ public function validate()
15
+ {
16
+ $errors = array();
17
+ $helper = Mage::helper('customer');
18
+ $this->implodeStreetAddress();
19
+
20
+ // if (!Zend_Validate::is($this->getCompany(), 'NotEmpty')) {
21
+ // $errors[] = $helper->__('Please enter your Company.');
22
+ // }
23
+
24
+ if (!Zend_Validate::is($this->getFirstname(), 'NotEmpty')) {
25
+ $errors[] = $helper->__('Please enter first name.');
26
+ }
27
+
28
+ if (!Zend_Validate::is($this->getLastname(), 'NotEmpty')) {
29
+ $errors[] = $helper->__('Please enter last name.');
30
+ }
31
+
32
+ if (!Zend_Validate::is($this->getStreet(1), 'NotEmpty')) {
33
+ $errors[] = $helper->__('Please enter street.');
34
+ }
35
+
36
+ if (!Zend_Validate::is($this->getCity(), 'NotEmpty')) {
37
+ $errors[] = $helper->__('Please enter city.');
38
+ }
39
+
40
+ // if (!Zend_Validate::is($this->getTelephone(), 'NotEmpty')) {
41
+ // $errors[] = $helper->__('Please enter telephone.');
42
+ // }
43
+
44
+ if (!Zend_Validate::is($this->getPostcode(), 'NotEmpty')) {
45
+ $errors[] = $helper->__('Please enter zip/postal code.');
46
+ }
47
+
48
+ if (!Zend_Validate::is($this->getCountryId(), 'NotEmpty')) {
49
+ $errors[] = $helper->__('Please enter country.');
50
+ }
51
+
52
+ // if ($this->getCountryModel()->getRegionCollection()->getSize()
53
+ // && !Zend_Validate::is($this->getRegionId(), 'NotEmpty')) {
54
+ // $errors[] = $helper->__('Please enter state/province.');
55
+ // }
56
+
57
+ if (empty($errors)) {
58
+ return true;
59
+ }
60
+ return $errors;
61
+ }
62
+ }
app/code/local/Mxperts/NoRegion/Model/Quote/Address.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Mxperts
4
+ * @package Mxperts_NoRegion
5
+ * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
6
+ * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
7
+ * @version 1.1.0
8
+ * @copyright TMEDIA cross communications, Doris Teitge-Seifert
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+
12
+ class Mxperts_NoRegion_Model_Quote_Address extends Mage_Sales_Model_Quote_Address
13
+ {
14
+ public function validate()
15
+ {
16
+ $errors = array();
17
+ $helper = Mage::helper('customer');
18
+ $this->implodeStreetAddress();
19
+
20
+ // if (!Zend_Validate::is($this->getCompany(), 'NotEmpty')) {
21
+ // $errors[] = $helper->__('Please enter your Company.');
22
+ // }
23
+
24
+ if (!Zend_Validate::is($this->getFirstname(), 'NotEmpty')) {
25
+ $errors[] = $helper->__('Please enter first name.');
26
+ }
27
+
28
+ if (!Zend_Validate::is($this->getLastname(), 'NotEmpty')) {
29
+ $errors[] = $helper->__('Please enter last name.');
30
+ }
31
+
32
+ if (!Zend_Validate::is($this->getStreet(1), 'NotEmpty')) {
33
+ $errors[] = $helper->__('Please enter street.');
34
+ }
35
+
36
+ if (!Zend_Validate::is($this->getCity(), 'NotEmpty')) {
37
+ $errors[] = $helper->__('Please enter city.');
38
+ }
39
+
40
+ // if (!Zend_Validate::is($this->getTelephone(), 'NotEmpty')) {
41
+ // $errors[] = $helper->__('Please enter telephone.');
42
+ // }
43
+
44
+ if (!Zend_Validate::is($this->getPostcode(), 'NotEmpty')) {
45
+ $errors[] = $helper->__('Please enter zip/postal code.');
46
+ }
47
+
48
+ if (!Zend_Validate::is($this->getCountryId(), 'NotEmpty')) {
49
+ $errors[] = $helper->__('Please enter country.');
50
+ }
51
+
52
+ // if ($this->getCountryModel()->getRegionCollection()->getSize()
53
+ // && !Zend_Validate::is($this->getRegionId(), 'NotEmpty')) {
54
+ // $errors[] = $helper->__('Please enter state/province.');
55
+ // }
56
+
57
+ if (empty($errors)) {
58
+ return true;
59
+ }
60
+ return $errors;
61
+ }
62
+ }
app/code/local/Mxperts/NoRegion/etc/config.xml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /**
3
+ * @category Mxperts
4
+ * @package Mxperts_NoRegion
5
+ * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
6
+ * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
7
+ * @version 1.1.0
8
+ * @copyright TMEDIA cross communications, Doris Teitge-Seifert
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+ -->
12
+ <config>
13
+ <modules>
14
+ <Mxperts_NoRegion>
15
+ <version>0.1.8</version>
16
+ <depends>
17
+ <Mage_Adminhtml />
18
+ <Mage_Customer />
19
+ <Mage_Checkout />
20
+ </depends>
21
+ </Mxperts_NoRegion>
22
+ </modules>
23
+
24
+ <global>
25
+
26
+ <blocks>
27
+ <adminhtml>
28
+ <rewrite>
29
+ <customer_grid>Mxperts_NoRegion_Block_Customer_Grid</customer_grid>
30
+ </rewrite>
31
+ <rewrite>
32
+ <customer_edit_tab_addresses>Mxperts_NoRegion_Block_Customer_Edit_Tab_Addresses</customer_edit_tab_addresses>
33
+ </rewrite>
34
+ </adminhtml>
35
+ </blocks>
36
+
37
+ <models>
38
+ <customer>
39
+ <rewrite>
40
+ <address>Mxperts_NoRegion_Model_Address</address>
41
+ </rewrite>
42
+ </customer>
43
+ <sales>
44
+ <rewrite>
45
+ <quote_address>Mxperts_NoRegion_Model_Quote_Address</quote_address>
46
+ </rewrite>
47
+ </sales>
48
+ </models>
49
+
50
+ <helpers>
51
+ <noregion>
52
+ <class>Mxperts_NoRegion_Helper_Data</class>
53
+ </noregion>
54
+ </helpers>
55
+
56
+ </global>
57
+
58
+ <frontend>
59
+ <layout>
60
+ <updates>
61
+ <noregion>
62
+ <file>noregion.xml</file>
63
+ </noregion>
64
+ </updates>
65
+ </layout>
66
+ </frontend>
67
+
68
+ <default>
69
+ <customer>
70
+ <noregion>
71
+ <enabled>1</enabled>
72
+ </noregion>
73
+ </customer>
74
+ </default>
75
+ </config>
app/code/local/Mxperts/NoRegion/etc/system.xml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Mxperts
5
+ * @package Mxperts_NoRegion
6
+ * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
7
+ * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
8
+ * @version 1.1.0
9
+ * @copyright TMEDIA cross communications, Doris Teitge-Seifert
10
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
+ */
12
+ -->
13
+ <config>
14
+ <sections>
15
+ <customer translate="label" module="core">
16
+ <frontend_type>text</frontend_type>
17
+ <sort_order>920</sort_order>
18
+ <show_in_default>1</show_in_default>
19
+ <show_in_website>1</show_in_website>
20
+ <show_in_store>1</show_in_store>
21
+ <groups>
22
+ <noregion translate="label">
23
+ <label>Mxperts - NoRegion</label>
24
+ <frontend_type>text</frontend_type>
25
+ <sort_order>1000</sort_order>
26
+ <show_in_default>1</show_in_default>
27
+ <show_in_website>1</show_in_website>
28
+ <show_in_store>1</show_in_store>
29
+ <fields>
30
+ <enabled translate="label">
31
+ <label>Enabled</label>
32
+ <comment><![CDATA[- <b>Hide</b> the Field <b>State / Province</b> in the Frontend? <br /> - Das Feld <b>Bundesland</b> im Frontend <b>verstecken</b>?]]></comment>
33
+ <frontend_type>select</frontend_type>
34
+ <source_model>adminhtml/system_config_source_yesno</source_model>
35
+ <sort_order>20</sort_order>
36
+ <show_in_default>1</show_in_default>
37
+ <show_in_website>1</show_in_website>
38
+ <show_in_store>1</show_in_store>
39
+ </enabled>
40
+ </fields>
41
+ </noregion>
42
+ </groups>
43
+ </customer>
44
+ </sections>
45
+ </config>
app/design/frontend/default/default/layout/noregion.xml CHANGED
@@ -5,7 +5,7 @@
5
  * @package Mxperts_NoRegion
6
  * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
7
  * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
8
- * @version 0.1.9
9
  * @copyright TMEDIA cross communications, Doris Teitge-Seifert
10
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
  */
5
  * @package Mxperts_NoRegion
6
  * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
7
  * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
8
+ * @version 1.1.0
9
  * @copyright TMEDIA cross communications, Doris Teitge-Seifert
10
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
  */
app/design/frontend/default/default/template/noregion/checkout/onepage/billing.phtml ADDED
@@ -0,0 +1,370 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Mxperts
4
+ * @package Mxperts_NoRegion
5
+ * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
6
+ * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
7
+ * @version 1.1.0
8
+ * @copyright TMEDIA cross communications, Doris Teitge-Seifert
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+ ?>
12
+
13
+ <?php $regiover=intval(substr(str_replace(".","",Mage::getVersion()),0,2)); ?>
14
+ <?php if ($regiover<14): ?>
15
+ <?php //Version 1.3.xxx oder kleiner ?>
16
+
17
+ <?php
18
+ /**
19
+ * Magento
20
+ *
21
+ * NOTICE OF LICENSE
22
+ *
23
+ * This source file is subject to the Academic Free License (AFL 3.0)
24
+ * that is bundled with this package in the file LICENSE_AFL.txt.
25
+ * It is also available through the world-wide-web at this URL:
26
+ * http://opensource.org/licenses/afl-3.0.php
27
+ * If you did not receive a copy of the license and are unable to
28
+ * obtain it through the world-wide-web, please send an email
29
+ * to license@magentocommerce.com so we can send you a copy immediately.
30
+ *
31
+ * DISCLAIMER
32
+ *
33
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
34
+ * versions in the future. If you wish to customize Magento for your
35
+ * needs please refer to http://www.magentocommerce.com for more information.
36
+ *
37
+ * @category design_default
38
+ * @package Mage
39
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
40
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
41
+ */
42
+ ?>
43
+ <form id="co-billing-form" action="">
44
+ <?php if ($this->customerHasAddresses()): ?>
45
+ <p><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></p>
46
+ <ul><li><p><?php echo $this->getAddressesHtmlSelect('billing') ?></p></li></ul>
47
+
48
+ <?php endif ?>
49
+ <fieldset class="group-select" id="billing-new-address-form" <?php if ($this->customerHasAddresses()): ?>style="display:none"<?php endif ?>>
50
+ <input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
51
+ <ul>
52
+ <li><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())
53
+ ->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
54
+ <li><div class="input-box">
55
+ <label for="billing:company"><?php echo $this->__('Company') ?></label><br />
56
+ <input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" /></div>
57
+ <?php if(!$this->isCustomerLoggedIn()): ?>
58
+ <div class="input-box">
59
+ <label for="billing:email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
60
+ <input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="validate-email required-entry input-text" /></div>
61
+ <?php endif ?>
62
+ </li>
63
+ <li><label for="billing:street1"><?php echo $this->__('Address') ?> <span class="required">*</span></label><br />
64
+ <input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="required-entry input-text" /></li>
65
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
66
+ <li><input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" /></li>
67
+ <?php endfor ?>
68
+ <li><div class="input-box">
69
+ <label for="billing:postcode"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
70
+ <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="validate-zip-international required-entry input-text" /></div>
71
+ <div class="input-box">
72
+ <label for="billing:city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
73
+ <input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="required-entry input-text" id="billing:city" /></div>
74
+ </li>
75
+ <li><div class="input-box" style="display:none;">
76
+ <label for="billing:region"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br/>
77
+ <select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none">
78
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
79
+ </select>
80
+ <script type="text/javascript">
81
+ $('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
82
+ </script>
83
+ <input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none" />
84
+ </div>
85
+ <div class="input-box">
86
+ <label for="billing:country_id"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
87
+ <?php echo $this->getCountryHtmlSelect('billing') ?></div></li>
88
+ <li><div class="input-box">
89
+ <label for="billing:telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br/>
90
+ <input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="required-entry input-text" id="billing:telephone" /></div>
91
+ <div class="input-box">
92
+ <label for="billing:fax"><?php echo $this->__('Fax') ?></label><br/>
93
+ <input type="text" name="billing[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="billing:fax" /></div></li>
94
+ <?php if(!$this->isCustomerLoggedIn()): ?>
95
+
96
+ <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
97
+ <?php if ($_dob->isEnabled()): ?>
98
+ <li>
99
+ <?php echo $_dob->setDate($this->getQuote()->getCustomerDob())
100
+ ->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
101
+ </li>
102
+ <?php endif ?>
103
+
104
+ <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
105
+ <?php if ($_taxvat->isEnabled()): ?>
106
+ <li>
107
+ <?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())
108
+ ->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
109
+ </li>
110
+ <?php endif ?>
111
+
112
+ <li id="register-customer-password">
113
+ <div class="input-box">
114
+ <label for="billing:customer_password"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br/>
115
+ <input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="required-entry validate-password input-text" /></div>
116
+ <div class="input-box">
117
+ <label for="billing:confirm_password"><?php echo $this->__('Confirm Password') ?> <span class="required">*</span></label><br/>
118
+ <input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="required-entry validate-password input-text" /></div></li>
119
+ <?php endif ?>
120
+ <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
121
+ <li><input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> /> <label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
122
+ <?php else:?>
123
+ <li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
124
+ <?php endif;?>
125
+ </ul>
126
+ </fieldset>
127
+ <fieldset>
128
+ <?php if ($this->canShip()): ?>
129
+ <p>
130
+ <input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1" <?php if ($this->isUseBillingAddressForShipping()) {?>checked="checked" <?php }?>onclick="$('shipping:same_as_billing').checked = true;" />&nbsp;<label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0" <?php if (!$this->isUseBillingAddressForShipping()) {?>checked="checked" <?php }?>onclick="$('shipping:same_as_billing').checked = false;" />&nbsp;<label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
131
+ </p>
132
+ <?php else: ?>
133
+ <p class="no-display"><input type="hidden" name="billing[use_for_shipping]" value="1" /></p>
134
+ <?php endif; ?>
135
+ </fieldset>
136
+ </form>
137
+ <div class="button-set">
138
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
139
+ <div id="billing-buttons-container">
140
+ <button type="button" class="form-button right" onclick="billing.save()"><span><?php echo $this->__('Continue') ?></span></button>
141
+ <span id="billing-please-wait" style="display:none;" class="opc-please-wait">
142
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" class="v-middle" alt="" /> &nbsp; <?php echo $this->__('Loading next step...') ?> &nbsp;
143
+ </span>
144
+ </div>
145
+ </div>
146
+
147
+ <script type="text/javascript">
148
+ //<![CDATA[
149
+ var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
150
+ var billingForm = new VarienForm('co-billing-form');
151
+
152
+ //billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
153
+ $('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
154
+
155
+ var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', countryRegions);
156
+ //]]>
157
+ </script>
158
+
159
+
160
+ <?php elseif ($regiover>=14): ?>
161
+ <?php //Verson 1.4.xxx ?>
162
+
163
+ <?php
164
+ /**
165
+ * Magento
166
+ *
167
+ * NOTICE OF LICENSE
168
+ *
169
+ * This source file is subject to the Academic Free License (AFL 3.0)
170
+ * that is bundled with this package in the file LICENSE_AFL.txt.
171
+ * It is also available through the world-wide-web at this URL:
172
+ * http://opensource.org/licenses/afl-3.0.php
173
+ * If you did not receive a copy of the license and are unable to
174
+ * obtain it through the world-wide-web, please send an email
175
+ * to license@magentocommerce.com so we can send you a copy immediately.
176
+ *
177
+ * DISCLAIMER
178
+ *
179
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
180
+ * versions in the future. If you wish to customize Magento for your
181
+ * needs please refer to http://www.magentocommerce.com for more information.
182
+ *
183
+ * @category design
184
+ * @package base_default
185
+ * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
186
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
187
+ */
188
+ ?>
189
+ <form id="co-billing-form" action="">
190
+ <fieldset>
191
+ <ul class="form-list">
192
+ <?php if ($this->customerHasAddresses()): ?>
193
+ <li class="wide">
194
+ <label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
195
+ <div class="input-box">
196
+ <?php echo $this->getAddressesHtmlSelect('billing') ?>
197
+ </div>
198
+ </li>
199
+ <?php endif; ?>
200
+ <li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
201
+ <fieldset>
202
+ <input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
203
+ <ul>
204
+ <li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
205
+ <li class="fields">
206
+ <div class="field">
207
+ <label for="billing:company"><?php echo $this->__('Company') ?></label>
208
+ <div class="input-box">
209
+ <input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" />
210
+ </div>
211
+ </div>
212
+ <?php if(!$this->isCustomerLoggedIn()): ?>
213
+ <div class="field">
214
+ <label for="billing:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
215
+ <div class="input-box">
216
+ <input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
217
+ </div>
218
+ </div>
219
+ <?php endif ?>
220
+ </li>
221
+ <li class="wide">
222
+ <label for="billing:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
223
+ <div class="input-box">
224
+ <input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="input-text required-entry" />
225
+ </div>
226
+ </li>
227
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
228
+ <li class="wide">
229
+ <div class="input-box">
230
+ <input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" />
231
+ </div>
232
+ </li>
233
+ <?php endfor ?>
234
+ <li class="fields">
235
+
236
+ <div class="field">
237
+ <label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
238
+ <div class="input-box">
239
+ <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international required-entry" />
240
+ </div>
241
+ </div>
242
+
243
+ <div class="field">
244
+ <label for="billing:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
245
+ <div class="input-box">
246
+ <input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="input-text required-entry" id="billing:city" />
247
+ </div>
248
+ </div>
249
+ <div class="field" style="display:none;">
250
+ <label for="billing:region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
251
+ <div class="input-box">
252
+ <select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
253
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
254
+ </select>
255
+ <script type="text/javascript">
256
+ //<![CDATA[
257
+ $('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
258
+ //]]>
259
+ </script>
260
+ <input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
261
+ </div>
262
+ </div>
263
+ </li>
264
+ <li class="fields">
265
+
266
+ <div class="field">
267
+ <label for="billing:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
268
+ <div class="input-box">
269
+ <?php echo $this->getCountryHtmlSelect('billing') ?>
270
+ </div>
271
+ </div>
272
+ </li>
273
+ <li lang="fields">
274
+ <div class="field">
275
+ <label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
276
+ <div class="input-box">
277
+ <input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="billing:telephone" />
278
+ </div>
279
+ </div>
280
+ <div class="field">
281
+ <label for="billing:fax"><?php echo $this->__('Fax') ?></label>
282
+ <div class="input-box">
283
+ <input type="text" name="billing[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="billing:fax" />
284
+ </div>
285
+ </div>
286
+ </li>
287
+ <?php if(!$this->isCustomerLoggedIn()): ?>
288
+
289
+ <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
290
+ <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
291
+ <?php if ($_dob->isEnabled() || $_gender->isEnabled()): ?>
292
+ <li class="fields">
293
+ <?php if ($_dob->isEnabled()): ?>
294
+ <div class="field">
295
+ <?php echo $_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
296
+ </div>
297
+ <?php endif; ?>
298
+ <?php if ($_gender->isEnabled()): ?>
299
+ <div class="field">
300
+ <?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
301
+ </div>
302
+ <?php endif ?>
303
+ </li>
304
+ <?php endif ?>
305
+
306
+ <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
307
+ <?php if ($_taxvat->isEnabled()): ?>
308
+ <li>
309
+ <?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
310
+ </li>
311
+ <?php endif ?>
312
+
313
+ <li class="fields" id="register-customer-password">
314
+ <div class="field">
315
+ <label for="billing:customer_password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
316
+ <div class="input-box">
317
+ <input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
318
+ </div>
319
+ </div>
320
+ <div class="field">
321
+ <label for="billing:confirm_password" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
322
+ <div class="input-box">
323
+ <input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="input-text required-entry validate-cpassword" />
324
+ </div>
325
+ </div>
326
+ </li>
327
+ <?php endif; ?>
328
+ <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
329
+ <li class="control">
330
+ <input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label>
331
+ </li>
332
+ <?php else:?>
333
+ <li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
334
+ <?php endif; ?>
335
+ </ul>
336
+ </fieldset>
337
+ </li>
338
+ <?php if ($this->canShip()): ?>
339
+ <li class="control">
340
+ <input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1"<?php if ($this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to this address') ?>" onclick="$('shipping:same_as_billing').checked = true;" class="radio" /><label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label></li>
341
+ <li class="control">
342
+ <input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0"<?php if (!$this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to different address') ?>" onclick="$('shipping:same_as_billing').checked = false;" class="radio" /><label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
343
+ </li>
344
+ <?php endif; ?>
345
+ </ul>
346
+ <?php if (!$this->canShip()): ?>
347
+ <input type="hidden" name="billing[use_for_shipping]" value="1" />
348
+ <?php endif; ?>
349
+ <div class="buttons-set" id="billing-buttons-container">
350
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
351
+ <button type="button" title="<?php echo $this->__('Continue') ?>" class="button" onclick="billing.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
352
+ <span class="please-wait" id="billing-please-wait" style="display:none;">
353
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
354
+ </span>
355
+ </div>
356
+ </fieldset>
357
+ </form>
358
+ <script type="text/javascript">
359
+ //<![CDATA[
360
+ var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
361
+ var billingForm = new VarienForm('co-billing-form');
362
+
363
+ //billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
364
+ $('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
365
+
366
+ var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', countryRegions, undefined, 'billing:postcode');
367
+ //]]>
368
+ </script>
369
+
370
+ <?php endif; ?>
app/design/frontend/default/default/template/noregion/checkout/onepage/shipping.phtml ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Mxperts
4
+ * @package Mxperts_NoRegion
5
+ * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
6
+ * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
7
+ * @version 1.1.0
8
+ * @copyright TMEDIA cross communications, Doris Teitge-Seifert
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+ ?>
12
+
13
+ <?php $regiover=intval(substr(str_replace(".","",Mage::getVersion()),0,2)); ?>
14
+ <?php if ($regiover<14): ?>
15
+ <?php //Version 1.3.xxx oder kleiner ?>
16
+
17
+ <?php
18
+ /**
19
+ * Magento
20
+ *
21
+ * NOTICE OF LICENSE
22
+ *
23
+ * This source file is subject to the Academic Free License (AFL 3.0)
24
+ * that is bundled with this package in the file LICENSE_AFL.txt.
25
+ * It is also available through the world-wide-web at this URL:
26
+ * http://opensource.org/licenses/afl-3.0.php
27
+ * If you did not receive a copy of the license and are unable to
28
+ * obtain it through the world-wide-web, please send an email
29
+ * to license@magentocommerce.com so we can send you a copy immediately.
30
+ *
31
+ * DISCLAIMER
32
+ *
33
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
34
+ * versions in the future. If you wish to customize Magento for your
35
+ * needs please refer to http://www.magentocommerce.com for more information.
36
+ *
37
+ * @category design_default
38
+ * @package Mage
39
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
40
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
41
+ */
42
+ ?>
43
+ <form id="co-shipping-form" action="">
44
+ <?php if ($this->customerHasAddresses()): ?>
45
+ <p><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></p>
46
+ <p><?php echo $this->getAddressesHtmlSelect('shipping') ?></p>
47
+ <?php endif ?>
48
+
49
+ <fieldset class="group-select" id="shipping-new-address-form" <?php if ($this->customerHasAddresses()): ?>style="display:none"<?php endif ?>>
50
+ <input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
51
+ <ul>
52
+ <li><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())
53
+ ->setFieldIdFormat('shipping:%s')->setFieldNameFormat('shipping[%s]')->setFieldParams('onchange="shipping.setSameAsBilling(false)"')->toHtml() ?></li>
54
+ <li><div class="input-box">
55
+ <label for="shipping:company"><?php echo $this->__('Company') ?></label><br/>
56
+ <input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" onchange="shipping.setSameAsBilling(false);" /></div>
57
+ <?php if(false): ?>
58
+ <div class="input-box">
59
+ <label for="shipping:email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
60
+ <input type="text" name="shipping[email]" id="shipping:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="validate-email required-entry input-text" /></div>
61
+ <?php endif ?>
62
+ </li>
63
+ <li><label for="shipping:street1"><?php echo $this->__('Address') ?> <span class="required">*</span></label><br />
64
+ <input type="text" title="<?php echo $this->__('Street Address') ?>" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="required-entry input-text" onchange="shipping.setSameAsBilling(false);" /></li>
65
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
66
+ <li><input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="shipping[street][]" id="shipping:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" onchange="shipping.setSameAsBilling(false);"/></li>
67
+ <?php endfor ?>
68
+ <li><div class="input-box">
69
+ <label for="shipping:postcode"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
70
+ <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="validate-zip-international required-entry input-text" onchange="shipping.setSameAsBilling(false);"/></div>
71
+ <div class="input-box">
72
+ <label for="shipping:city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
73
+ <input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="required-entry input-text" id="shipping:city" onchange="shipping.setSameAsBilling(false);" /></div>
74
+ <div class="input-box" style="display:none;">
75
+ <label for="shipping:region_id"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
76
+ <select id="shipping:region_id" name="shipping[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none">
77
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
78
+ </select>
79
+ <script type="text/javascript">
80
+ $('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
81
+ </script>
82
+ <input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none" /></div></li>
83
+ <li>
84
+
85
+ <div class="input-box">
86
+ <label for="shipping:country_id"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
87
+ <?php echo $this->getCountryHtmlSelect('shipping') ?>
88
+ </div></li>
89
+ <li><div class="input-box">
90
+ <label for="shipping:telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
91
+ <input type="text" name="shipping[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="required-entry input-text" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" /></div>
92
+ <div class="input-box">
93
+ <label for="shipping:fax"><?php echo $this->__('Fax') ?></label><br />
94
+ <input type="text" name="shipping[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" /></div></li>
95
+ <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
96
+ <li><input type="checkbox" name="shipping[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> /> <label for="shipping:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
97
+ <?php else:?>
98
+ <li><input type="hidden" name="shipping[save_in_address_book]" value="1" /></li>
99
+ <?php endif;?>
100
+ </ul>
101
+ </fieldset>
102
+ <p><input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1" <?php if($this->getAddress()->getSameAsBilling()): ?>checked="checked"<?php endif ?> onclick="shipping.setSameAsBilling(this.checked)" /> &nbsp;<label for="shipping:same_as_billing"><?php echo $this->__('Use Billing Address') ?></label></p>
103
+ </form>
104
+ <div class="button-set">
105
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
106
+ <div id="shipping-buttons-container">
107
+ <a href="#" class="back left" onclick="checkout.back(); return false;"><?php echo $this->__('Back') ?></a>
108
+ <button type="button" class="form-button right" onclick="shipping.save()"><span><?php echo $this->__('Continue') ?></span></button>
109
+ <span id="shipping-please-wait" style="display:none;" class="opc-please-wait">
110
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" class="v-middle" alt="" /> &nbsp; <?php echo $this->__('Loading next step...') ?> &nbsp;
111
+ </span>
112
+ </div>
113
+ </div>
114
+
115
+ <script type="text/javascript">
116
+ //<![CDATA[
117
+ var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveShipping') ?>',
118
+ '<?php echo $this->getUrl('checkout/onepage/shippingMethod') ?>');
119
+ var shippingForm = new VarienForm('co-shipping-form');
120
+ shippingForm.extraChildParams = ' onchange="shipping.setSameAsBilling(false);"';
121
+ //shippingForm.setElementsRelation('shipping:country_id', 'shipping:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
122
+ $('shipping-address-select') && shipping.newAddress(!$('shipping-address-select').value);
123
+
124
+ var shippingRegionUpdater = new RegionUpdater('shipping:country_id', 'shipping:region', 'shipping:region_id', countryRegions);
125
+ //]]>
126
+ </script>
127
+
128
+ <?php elseif ($regiover>=14): ?>
129
+ <?php //Verson 1.4.xxx ?>
130
+
131
+ <?php
132
+ /**
133
+ * Magento
134
+ *
135
+ * NOTICE OF LICENSE
136
+ *
137
+ * This source file is subject to the Academic Free License (AFL 3.0)
138
+ * that is bundled with this package in the file LICENSE_AFL.txt.
139
+ * It is also available through the world-wide-web at this URL:
140
+ * http://opensource.org/licenses/afl-3.0.php
141
+ * If you did not receive a copy of the license and are unable to
142
+ * obtain it through the world-wide-web, please send an email
143
+ * to license@magentocommerce.com so we can send you a copy immediately.
144
+ *
145
+ * DISCLAIMER
146
+ *
147
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
148
+ * versions in the future. If you wish to customize Magento for your
149
+ * needs please refer to http://www.magentocommerce.com for more information.
150
+ *
151
+ * @category design
152
+ * @package base_default
153
+ * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
154
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
155
+ */
156
+ ?>
157
+ <form action="" id="co-shipping-form">
158
+ <ul class="form-list">
159
+ <?php if ($this->customerHasAddresses()): ?>
160
+ <li class="wide">
161
+ <label for="shipping-address-select"><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></label>
162
+ <div class="input-box">
163
+ <?php echo $this->getAddressesHtmlSelect('shipping') ?>
164
+ </div>
165
+ </li>
166
+ <?php endif ?>
167
+ <li id="shipping-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif ?>>
168
+ <fieldset>
169
+ <input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
170
+ <ul>
171
+ <li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())->setFieldIdFormat('shipping:%s')->setFieldNameFormat('shipping[%s]')->setFieldParams('onchange="shipping.setSameAsBilling(false)"')->toHtml() ?></li>
172
+ <li class="fields">
173
+ <div class="fields">
174
+ <label for="shipping:company"><?php echo $this->__('Company') ?></label>
175
+ <div class="input-box">
176
+ <input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" onchange="shipping.setSameAsBilling(false);" />
177
+ </div>
178
+ </div>
179
+ <?php if(false): ?>
180
+ <div class="fields">
181
+ <label for="shipping:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
182
+ <div class="input-box">
183
+ <input type="text" name="shipping[email]" id="shipping:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
184
+ </div>
185
+ </div>
186
+ <?php endif ?>
187
+ </li>
188
+ <li class="wide">
189
+ <label for="shipping:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
190
+ <div class="input-box">
191
+ <input type="text" title="<?php echo $this->__('Street Address') ?>" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="input-text required-entry" onchange="shipping.setSameAsBilling(false);" />
192
+ </div>
193
+ </li>
194
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
195
+ <li class="wide">
196
+ <div class="input-box">
197
+ <input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="shipping[street][]" id="shipping:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" onchange="shipping.setSameAsBilling(false);" />
198
+ </div>
199
+ </li>
200
+ <?php endfor ?>
201
+ <li class="fields">
202
+ <div class="field">
203
+ <label for="shipping:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
204
+ <div class="input-box">
205
+ <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international required-entry" onchange="shipping.setSameAsBilling(false);" />
206
+ </div>
207
+ </div>
208
+
209
+ <div class="field">
210
+ <label for="shipping:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
211
+ <div class="input-box">
212
+ <input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="input-text required-entry" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />
213
+ </div>
214
+ </div>
215
+ <div class="field" style="display:none;">
216
+ <label for="shipping:region" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
217
+ <div class="input-box">
218
+ <select id="shipping:region_id" name="shipping[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
219
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
220
+ </select>
221
+ <script type="text/javascript">
222
+ //<![CDATA[
223
+ $('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
224
+ //]]>
225
+ </script>
226
+ <input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
227
+ </div>
228
+ </div>
229
+ </li>
230
+ <li class="fields">
231
+
232
+ <div class="field">
233
+ <label for="shipping:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
234
+ <div class="input-box">
235
+ <?php echo $this->getCountryHtmlSelect('shipping') ?>
236
+ </div>
237
+ </div>
238
+ </li>
239
+ <li class="fields">
240
+ <div class="field">
241
+ <label for="shipping:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
242
+ <div class="input-box">
243
+ <input type="text" name="shipping[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" />
244
+ </div>
245
+ </div>
246
+ <div class="field">
247
+ <label for="shipping:fax"><?php echo $this->__('Fax') ?></label>
248
+ <div class="input-box">
249
+ <input type="text" name="shipping[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" />
250
+ </div>
251
+ </div>
252
+ </li>
253
+ <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
254
+ <li class="control">
255
+ <input type="checkbox" name="shipping[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="shipping:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
256
+ <?php else:?>
257
+ <li class="no-display"><input type="hidden" name="shipping[save_in_address_book]" value="1" /></li>
258
+ <?php endif;?>
259
+ </ul>
260
+ </fieldset>
261
+ </li>
262
+ <li class="control">
263
+ <input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getAddress()->getSameAsBilling()): ?> checked="checked"<?php endif; ?> title="<?php echo $this->__('Use Billing Address') ?>" onclick="shipping.setSameAsBilling(this.checked)" class="checkbox" /><label for="shipping:same_as_billing"><?php echo $this->__('Use Billing Address') ?></label>
264
+ </li>
265
+ </ul>
266
+ <div class="buttons-set" id="shipping-buttons-container">
267
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
268
+ <p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
269
+ <button type="button" class="button" title="<?php echo $this->__('Continue') ?>" onclick="shipping.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
270
+ <span id="shipping-please-wait" class="please-wait" style="display:none;">
271
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
272
+ </span>
273
+ </div>
274
+ </form>
275
+ <script type="text/javascript">
276
+ //<![CDATA[
277
+ var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveShipping') ?>',
278
+ '<?php echo $this->getUrl('checkout/onepage/shippingMethod') ?>');
279
+ var shippingForm = new VarienForm('co-shipping-form');
280
+ shippingForm.extraChildParams = ' onchange="shipping.setSameAsBilling(false);"';
281
+ //shippingForm.setElementsRelation('shipping:country_id', 'shipping:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
282
+ $('shipping-address-select') && shipping.newAddress(!$('shipping-address-select').value);
283
+
284
+ var shippingRegionUpdater = new RegionUpdater('shipping:country_id', 'shipping:region', 'shipping:region_id', countryRegions, undefined, 'shipping:postcode');
285
+ //]]>
286
+ </script>
287
+
288
+ <?php endif; ?>
app/design/frontend/default/default/template/noregion/customer/address/edit.phtml ADDED
@@ -0,0 +1,312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Mxperts
4
+ * @package Mxperts_NoRegion
5
+ * @authors TMEDIA cross communications <info@tmedia.de>, Johannes Teitge <teitge@tmedia.de>, Igor Jankovic <jankovic@tmedia.de>, Daniel Sasse <info@golox-web.de>
6
+ * @developer Daniel Sasse <info@golox-web.de, http://www.golox-web.de/>
7
+ * @version 1.1.0
8
+ * @copyright TMEDIA cross communications, Doris Teitge-Seifert
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+ ?>
12
+
13
+ <?php $regiover=intval(substr(str_replace(".","",Mage::getVersion()),0,2)); ?>
14
+ <?php if ($regiover<14): ?>
15
+ <?php //Version 1.3.xxx oder kleiner ?>
16
+
17
+ <?php
18
+ /**
19
+ * Magento
20
+ *
21
+ * NOTICE OF LICENSE
22
+ *
23
+ * This source file is subject to the Academic Free License (AFL 3.0)
24
+ * that is bundled with this package in the file LICENSE_AFL.txt.
25
+ * It is also available through the world-wide-web at this URL:
26
+ * http://opensource.org/licenses/afl-3.0.php
27
+ * If you did not receive a copy of the license and are unable to
28
+ * obtain it through the world-wide-web, please send an email
29
+ * to license@magentocommerce.com so we can send you a copy immediately.
30
+ *
31
+ * DISCLAIMER
32
+ *
33
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
34
+ * versions in the future. If you wish to customize Magento for your
35
+ * needs please refer to http://www.magentocommerce.com for more information.
36
+ *
37
+ * @category design_default
38
+ * @package Mage
39
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
40
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
41
+ */
42
+ ?>
43
+ <?php
44
+ /**
45
+ * Edit customer address template
46
+ *
47
+ * @see Mage_Customer_Block_Address_Edit
48
+ */
49
+ ?>
50
+ <?php if($this->getTitle()): ?>
51
+ <div class="page-head">
52
+ <h3><?php echo $this->getTitle() ?></h3>
53
+ </div>
54
+ <?php endif; ?>
55
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
56
+ <form action="<?php echo $this->getSaveUrl() ?>" method="post" id="form-validate">
57
+ <fieldset class="group-select">
58
+ <?php echo $this->getBlockHtml('formkey')?>
59
+ <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
60
+ <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
61
+ <h4 class="legend"><?php echo $this->__('Contact Information') ?></h4>
62
+ <ul>
63
+ <li>
64
+ <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getCustomer())->toHtml() ?>
65
+ </li>
66
+ <li>
67
+ <label for="company"><?php echo $this->__('Company') ?></label><br />
68
+ <input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" class="input-text" />
69
+ </li>
70
+ <li>
71
+ <div class="input-box">
72
+ <label for="telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
73
+ <input type="text" name="telephone" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="required-entry input-text" id="telephone" />
74
+ </div>
75
+ <div class="input-box">
76
+ <label for="fax"><?php echo $this->__('Fax') ?></label><br />
77
+ <input type="text" name="fax" id="fax" title="<?php echo $this->__('Fax') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" class="input-text" />
78
+ </div>
79
+ </li>
80
+ </ul>
81
+ </fieldset>
82
+ <fieldset class="group-select">
83
+ <h4 class="legend"><?php echo $this->__('Address') ?></h4>
84
+ <ul>
85
+ <li>
86
+ <label for="street_1"><?php echo $this->__('Street Address') ?> <span class="required">*</span></label><br />
87
+ <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="required-entry input-text" />
88
+ </li>
89
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
90
+ <li>
91
+ <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address '.$_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
92
+ </li>
93
+ <?php endfor ?>
94
+ <li>
95
+ <div class="input-box">
96
+ <label for="zip"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
97
+ <input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="validate-zip-international required-entry input-text" />
98
+ </div>
99
+ <div class="input-box">
100
+ <label for="city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
101
+ <input type="text" name="city" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="required-entry input-text" id="city" />
102
+ </div>
103
+ <div class="input-box" style="display:none;">
104
+ <label for="region_id"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
105
+ <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none">
106
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
107
+ </select>
108
+ <script type="text/javascript">
109
+ $('region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
110
+ </script>
111
+ <input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none" />
112
+ </div>
113
+ </li>
114
+ <li>
115
+ <div class="input-box">
116
+ <label for="country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
117
+ <?php echo $this->getCountryHtmlSelect() ?>
118
+ </div>
119
+ </li>
120
+ <li>
121
+ <?php if($this->isDefaultBilling()): ?>
122
+ <strong><?php echo $this->__('Default Billing Address') ?></strong>
123
+ <?php elseif($this->canSetAsDefaultBilling()): ?>
124
+ <input type="checkbox" id="primary_billing" name="default_billing" value="1" />&nbsp;
125
+ <label for="primary_billing"><?php echo $this->__('Use as my default billing address') ?></label>
126
+ <?php else: ?>
127
+ <input type="hidden" name="default_billing" value="1" />
128
+ <?php endif; ?>
129
+ </li>
130
+ <li>
131
+ <?php if($this->isDefaultShipping()): ?>
132
+ <strong><?php echo $this->__('Default Shipping Address') ?></strong>
133
+ <?php elseif($this->canSetAsDefaultShipping()): ?>
134
+ <input type="checkbox" id="primary_shipping" name="default_shipping" value="1" />&nbsp;
135
+ <label for="primary_shipping"><?php echo $this->__('Use as my default shipping address') ?></label>
136
+ <?php else: ?>
137
+ <input type="hidden" name="default_shipping" value="1" />
138
+ <?php endif; ?>
139
+ </li>
140
+ </ul>
141
+ </fieldset>
142
+ <div class="button-set">
143
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
144
+ <a href="<?php echo $this->getBackUrl() ?>" class="left">&laquo; <?php echo $this->__('Back') ?></a>
145
+ <button class="form-button" type="submit"><span><?php echo $this->__('Save Address') ?></span></button>
146
+ </div>
147
+ </form>
148
+ <script type="text/javascript">
149
+ var dataForm = new VarienForm('form-validate', true);
150
+ new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
151
+ </script>
152
+
153
+ <?php elseif ($regiover>=14): ?>
154
+ <?php //Verson 1.4.xxx ?>
155
+
156
+ <?php
157
+ /**
158
+ * Magento
159
+ *
160
+ * NOTICE OF LICENSE
161
+ *
162
+ * This source file is subject to the Academic Free License (AFL 3.0)
163
+ * that is bundled with this package in the file LICENSE_AFL.txt.
164
+ * It is also available through the world-wide-web at this URL:
165
+ * http://opensource.org/licenses/afl-3.0.php
166
+ * If you did not receive a copy of the license and are unable to
167
+ * obtain it through the world-wide-web, please send an email
168
+ * to license@magentocommerce.com so we can send you a copy immediately.
169
+ *
170
+ * DISCLAIMER
171
+ *
172
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
173
+ * versions in the future. If you wish to customize Magento for your
174
+ * needs please refer to http://www.magentocommerce.com for more information.
175
+ *
176
+ * @category design
177
+ * @package base_default
178
+ * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
179
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
180
+ */
181
+ ?>
182
+ <?php
183
+ /**
184
+ * Edit customer address template
185
+ *
186
+ * @see Mage_Customer_Block_Address_Edit
187
+ */
188
+ ?>
189
+ <?php if($this->getTitle()): ?>
190
+ <div class="page-title">
191
+ <h1><?php echo $this->getTitle() ?></h1>
192
+ </div>
193
+ <?php endif; ?>
194
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
195
+ <form action="<?php echo $this->getSaveUrl() ?>" method="post" id="form-validate">
196
+ <div class="fieldset">
197
+ <?php echo $this->getBlockHtml('formkey')?>
198
+ <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
199
+ <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
200
+ <h2 class="legend"><?php echo $this->__('Contact Information') ?></h2>
201
+ <ul class="form-list">
202
+ <li class="fields">
203
+ <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getCustomer())->toHtml() ?>
204
+ </li>
205
+ <li class="wide">
206
+ <label for="company"><?php echo $this->__('Company') ?></label>
207
+ <div class="input-box">
208
+ <input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" class="input-text" />
209
+ </div>
210
+ </li>
211
+ <li class="fields">
212
+ <div class="field">
213
+ <label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
214
+ <div class="input-box">
215
+ <input type="text" name="telephone" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="telephone" />
216
+ </div>
217
+ </div>
218
+ <div class="field">
219
+ <label for="fax"><?php echo $this->__('Fax') ?></label>
220
+ <div class="input-box">
221
+ <input type="text" name="fax" id="fax" title="<?php echo $this->__('Fax') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" class="input-text" />
222
+ </div>
223
+ </div>
224
+ </li>
225
+ </ul>
226
+ </div>
227
+ <div class="fieldset">
228
+ <h2 class="legend"><?php echo $this->__('Address') ?></h2>
229
+ <ul class="form-list">
230
+ <li class="wide">
231
+ <label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
232
+ <div class="input-box">
233
+ <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text required-entry" />
234
+ </div>
235
+ </li>
236
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
237
+ <li class="wide">
238
+ <div class="input-box">
239
+ <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address '.$_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
240
+ </div>
241
+ </li>
242
+ <?php endfor ?>
243
+ <li class="fields">
244
+ <div class="field">
245
+ <label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
246
+ <div class="input-box">
247
+ <input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international required-entry" />
248
+ </div>
249
+ </div>
250
+ <div class="field">
251
+ <label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
252
+ <div class="input-box">
253
+ <input type="text" name="city" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text required-entry" id="city" />
254
+ </div>
255
+ </div>
256
+ <div class="field" style="display:none;">
257
+ <label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
258
+ <div class="input-box">
259
+ <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
260
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
261
+ </select>
262
+ <script type="text/javascript">
263
+ //<![CDATA[
264
+ $('region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
265
+ //]]>
266
+ </script>
267
+ <input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
268
+ </div>
269
+ </div>
270
+ </li>
271
+ <li class="fields">
272
+ <div class="field">
273
+ <label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
274
+ <div class="input-box">
275
+ <?php echo $this->getCountryHtmlSelect() ?>
276
+ </div>
277
+ </div>
278
+ </li>
279
+ <li<?php if($this->canSetAsDefaultBilling()) echo ' class="control"' ?>>
280
+ <?php if($this->isDefaultBilling()): ?>
281
+ <strong><?php echo $this->__('Default Billing Address') ?></strong>
282
+ <?php elseif($this->canSetAsDefaultBilling()): ?>
283
+ <input type="checkbox" id="primary_billing" name="default_billing" value="1" title="<?php echo $this->__('Use as my default billing address') ?>" class="checkbox" /><label for="primary_billing"><?php echo $this->__('Use as my default billing address') ?></label>
284
+ <?php else: ?>
285
+ <input type="hidden" name="default_billing" value="1" />
286
+ <?php endif; ?>
287
+ </li>
288
+ <li<?php if($this->canSetAsDefaultShipping()) echo ' class="control"' ?>>
289
+ <?php if($this->isDefaultShipping()): ?>
290
+ <strong><?php echo $this->__('Default Shipping Address') ?></strong>
291
+ <?php elseif($this->canSetAsDefaultShipping()): ?>
292
+ <input type="checkbox" id="primary_shipping" name="default_shipping" value="1" title="<?php echo $this->__('Use as my default shipping address') ?>" class="checkbox" /><label for="primary_shipping"><?php echo $this->__('Use as my default shipping address') ?></label>
293
+ <?php else: ?>
294
+ <input type="hidden" name="default_shipping" value="1" />
295
+ <?php endif; ?>
296
+ </li>
297
+ </ul>
298
+ </div>
299
+ <div class="buttons-set">
300
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
301
+ <p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
302
+ <button type="submit" title="<?php echo $this->__('Save Address') ?>" class="button"><span><span><?php echo $this->__('Save Address') ?></span></span></button>
303
+ </div>
304
+ </form>
305
+ <script type="text/javascript">
306
+ //<![CDATA[
307
+ var dataForm = new VarienForm('form-validate', true);
308
+ new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
309
+ //]]>
310
+ </script>
311
+
312
+ <?php endif; ?>
app/etc/modules/Mxperts_NoRegion.xml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Mxperts_NoRegion>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ <depends>
8
+ <Mage_Customer />
9
+ <Mage_Adminhtml />
10
+ <Mage_Checkout />
11
+ </depends>
12
+ </Mxperts_NoRegion>
13
+ </modules>
14
+ </config>
15
+
package.xml CHANGED
@@ -1,24 +1,24 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mxperts_NoRegion</name>
4
- <version>0.1.9</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Hide State / Province in the Store-Frontend.</summary>
10
  <description>EN_US&#xD;
11
- Hide State / Province in the Store-Frontend. The Customer have no possibility to enter or edit State / Province statements in the checkout shipping and in the billing steps. Also this field is missing in the Customer Accound and in the multishipping chekout process.&#xD;
12
  &#xD;
13
  The Module is designed for the issues on the German Market - if you want more infos about it in english, please contact us.&#xD;
14
  &#xD;
15
  DE_AT_CH&#xD;
16
- Versteckt das Feld Bundesland / Kanton im Shop-Frontend, ausserdem Deaktivierung f&#xFC;r das Backend als Pflichtfeld. Der Kunde hat keine M&#xF6;glichkeit dieses Feld im Checkout, Multishipping Checkout und im Benutzerkonto zu sehen oder entsprechende Daten zu editieren.</description>
17
  <notes>keine / none</notes>
18
  <authors><author><name>Johannes Teitge</name><user>auto-converted</user><email>teitge@tmedia.de</email></author><author><name>Daniel Sasse</name><user>auto-converted</user><email>info@golox-web.de</email></author></authors>
19
- <date>2011-03-29</date>
20
- <time>15:02:16</time>
21
- <contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="noregion.xml" hash="586d9051917e260d82c0a6c0556b403f"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="."><file name="Mxperts_NoRegion.xml" hash=""/></dir></target></contents>
22
  <compatible/>
23
  <dependencies/>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mxperts_NoRegion</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Hide State / Province in the Store-Frontend &amp; the Backend.</summary>
10
  <description>EN_US&#xD;
11
+ Hide State / Province in the Store-Frontend &amp; Backend. The Customer have no possibility to enter or edit State / Province statements in the checkout shipping and in the billing steps. Also this field is missing in the Customer Accound and in the multishipping chekout process.&#xD;
12
  &#xD;
13
  The Module is designed for the issues on the German Market - if you want more infos about it in english, please contact us.&#xD;
14
  &#xD;
15
  DE_AT_CH&#xD;
16
+ Versteckt das Feld Bundesland / Kanton im Shop-Frontend + Backend. Der Kunde hat keine M&#xF6;glichkeit dieses Feld im Checkout, Multishipping Checkout und im Benutzerkonto zu sehen oder entsprechende Daten zu editieren.</description>
17
  <notes>keine / none</notes>
18
  <authors><author><name>Johannes Teitge</name><user>auto-converted</user><email>teitge@tmedia.de</email></author><author><name>Daniel Sasse</name><user>auto-converted</user><email>info@golox-web.de</email></author></authors>
19
+ <date>2011-03-30</date>
20
+ <time>10:25:10</time>
21
+ <contents><target name="mageetc"><dir name="modules"><file name="Mxperts_NoRegion.xml" hash="f9f52307b6775dc2182f844cb4acebd2"/></dir></target><target name="magelocal"><dir name="Mxperts"><dir name="NoRegion"><dir name="Block"><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Addresses.php" hash="ef3e3dde1877b0b3f86ff868316dbc46"/></dir></dir><file name="Grid.php" hash="758146854d59772fcb1157dce81547ac"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7d59a4b0df2ccdbaa37e2f2deea18f6c"/></dir><dir name="Model"><dir name="Quote"><file name="Address.php" hash="6a14899bb8d65c922035afe1f5c58817"/></dir><file name="Address.php" hash="69cb1e31aab10fe11ffb0f3a3dd4eb05"/></dir><dir name="etc"><file name="config.xml" hash="43d5cc4f0586eec311a13130da37fab8"/><file name="system.xml" hash="e60f47b8cb35816b2dc5c0ba8bdadbc1"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="noregion.xml" hash="1c3c4d797bc74afe2574454927495e59"/></dir><dir name="template"><dir name="noregion"><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="dd005dddcd0aa4f7e7dd7bb21309d6ba"/><file name="shipping.phtml" hash="07b5b48ee3f04acfbc61a12c642195a1"/></dir></dir><dir name="customer"><dir name="address"><file name="edit.phtml" hash="516076a94f7caeb1aa86d1d79616733c"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies/>
24
  </package>