Ich habe mir jetzt folgendermaßen beholfen.
In der IsotopeAddressModel.php nehme ich die Ersetzungen der Adressplatzhalter selber vor,
da die Zeile
PHP-Code:
$strAddress = $this->Isotope->call('parseSimpleTokens', array($strFormat, $arrTokens));
offenbar nicht greift.
PHP-Code:
$strAddress = preg_replace('#company#', $arrTokens['company'], $strAddress);
$strAddress = preg_replace('#salutation#', $arrTokens['salutation'], $strAddress);
$strAddress = preg_replace('#firstname#', $arrTokens['firstname'], $strAddress);
$strAddress = preg_replace('#lastname#', $arrTokens['lastname'], $strAddress);
$strAddress = preg_replace('#street_1#', $arrTokens['street_1'], $strAddress);
$strAddress = preg_replace('#street_2#', $arrTokens['street_2'], $strAddress);
$strAddress = preg_replace('#street_3#', $arrTokens['street_3'], $strAddress);
$strAddress = preg_replace('#postal#', $arrTokens['postal'], $strAddress);
$strAddress = preg_replace('#city#', $arrTokens['city'], $strAddress);
$strAddress = preg_replace('#country#', $arrTokens['country'], $strAddress);
$strAddress = preg_replace('#phone#', $arrTokens['phone'], $strAddress);
$strAddress = preg_replace('#email#', $arrTokens['email'], $strAddress);
Falls jemand eine saubere Idee dafür hat, würde ich mich freuen.
Mark
Lesezeichen