
Originally Posted by
clydejones
In order to do this, you will need to edit the following files and disable the error handling for that particular field.
includes/modules/pages/returns/header_php.php
includes/templates/YOUR_TEMPLATE/templates/tpl_returns_default.php
Thanx!
I commented out all lines and "if expressions" that contained the " state " issue.
However there were two instances where I just deleted the state entries:
includes/modules/pages/returns/header_php.php
line 41
Code:
if ($zc_validate_email and !empty($reason) and !empty($name) and !empty($address) and !empty($city) and !empty($state) and !empty($country) and !empty($postcode) and !empty($order_number)) {
includes/modules/pages/returns/header_php.php
line 137
Code:
$sql = "SELECT c.customers_id, c.customers_firstname, c.customers_lastname, c.customers_email_address, c.customers_default_address_id, c.customers_telephone, ab.customers_id, ab.entry_street_address, ab.entry_city, ab.entry_postcode, ab.entry_state, ab.entry_zone_id, ab.entry_country_id, z.zone_id, z.zone_code, cn.countries_id, cn.countries_name FROM " . TABLE_CUSTOMERS . " c, " . TABLE_ADDRESS_BOOK . " ab, " . TABLE_ZONES . " z, " . TABLE_COUNTRIES . " cn WHERE c.customers_id = :customersID AND ab.customers_id = c.customers_id AND ab.entry_country_id = cn.countries_id";
Seems to be working OK.
Kind regards,
orange_juice
Bookmarks