This worked for me in 1.5, it's quite quick and easy. You need to modify both controller files and view files for three different scenarios;
1. Guest checkout
2. Account creation during checkout
3. Account creation without checkout (also when editing address in account page)
To remove from guest checkout:
In /catalog/controller/checkout/guest.php
Find (should be around line 58)
Code: Select all
if ($this->request->post['zone_id'] == '') {
$json['error']['zone'] = $this->language->get('error_zone');
}
and either comment that out or delete.
In /catalog/view/theme/YOURTHEME/template/checkout/guest.tpl
Find (should be around line 59)
Code: Select all
<span class="required">*</span> <?php echo $entry_zone; ?><br />
<select name="zone_id" class="large-field">
</select>
and either comment that out or delete.
In /catalog/view/theme/YOURTHEME/template/checkout/guest_shipping.tpl
Find (should be around line 43)
Code: Select all
<tr>
<td><span class="required">*</span> <?php echo $entry_zone; ?></td>
<td><select name="zone_id" class="large-field">
</select></td>
</tr>
and either comment that out or delete. And add the following in that spot:
Code: Select all
<input type="hidden" name="zone_id" value="0" />
To remove from account creation during checkout:
In /catalog/controller/checkout/register.php
Find (should be around line 60)
Code: Select all
if ($this->request->post['zone_id'] == '') {
$json['error']['zone'] = $this->language->get('error_zone');
}
and either comment that out or delete.
In /catalog/controller/checkout/address.php
Find
two instances of (should be around line 62
AND line 192)
Code: Select all
if ($this->request->post['zone_id'] == '') {
$json['error']['zone'] = $this->language->get('error_zone');
}
and either comment that out or delete.
In /catalog/view/theme/YOURTHEME/template/checkout/register.tpl
Find (should be around line 69)
Code: Select all
<span class="required">*</span> <?php echo $entry_zone; ?><br />
<select name="zone_id" class="large-field">
</select>
and either comment that out or delete.
In /catalog/view/theme/YOURTHEME/template/checkout/address.tpl
Find (should be around line 63)
Code: Select all
<tr>
<td><span class="required">*</span> <?php echo $entry_zone; ?></td>
<td><select name="zone_id" class="large-field">
</select></td>
</tr>
and either comment that out or delete. And add the following in that spot:
Code: Select all
<input type="hidden" name="zone_id" value="0" />
To remove from account creation without checkout:
In /catalog/controller/account/register.php
Find (should be around line 322)
Code: Select all
if ($this->request->post['zone_id'] == '') {
$this->error['zone'] = $this->language->get('error_zone');
}
and either comment that out or delete.
In /catalog/controller/account/address.php
Find (should be around line 466)
Code: Select all
if ($this->request->post['zone_id'] == '') {
$this->error['zone'] = $this->language->get('error_zone');
}
and either comment that out or delete.
In /catalog/view/theme/YOURTHEME/template/account/register.tpl
Find (should be around line 99)
Code: Select all
<tr>
<td><span class="required">*</span> <?php echo $entry_zone; ?></td>
<td><select name="zone_id">
</select>
<?php if ($error_zone) { ?>
<span class="error"><?php echo $error_zone; ?></span>
<?php } ?></td>
</tr>
and either comment that out or delete. And add the following in that spot:
Code: Select all
<input type="hidden" name="zone_id" value="0" />
In /catalog/view/theme/YOURTHEME/template/account/address_form.tpl
Find (should be around line 72)
Code: Select all
<tr>
<td><span class="required">*</span> <?php echo $entry_zone; ?></td>
<td><select name="zone_id">
</select>
<?php if ($error_zone) { ?>
<span class="error"><?php echo $error_zone; ?></span>
<?php } ?></td>
</tr>
and either comment that out or delete. And add the following in that spot:
Code: Select all
<input type="hidden" name="zone_id" value="0" />
That should do it! I apologize for the long post, but I wanted to make it clear so that everyone can follow along. Give me a shout if I missed something!