Played with this on a local installation (zc 1.5.3).
I need to stress that I have NOT implemented DrByte's second part of the solution - the part which talks about editing the "address_format" table in phpMyAdmin.
I changed this
PHP Code:
if ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) {
$address_out = $company . $cr . $address_out;
}
to this
PHP Code:
if ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) && !strpos($fmt, '$company') ) {
$address_out = $company . $cr . $address_out;
} elseif ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) {
$address_out = $company . $cr . $address_out;
}
I placed test orders with company name specified and company name not specified - no errors reported.
Suggest you try this ONLY on a local installation but not on a live store.
I could be totally off course - but worth a try.
Frank
Bookmarks