admin123/pdf.php?id_order=223&pdf
при нажатии генерится pdf однако там нет имени например И. Иванов
Я так понял что, что выводить прописано здесь
корень/classes/PDF.php
Нашол где генерится адрес,
Код:
/*
* Generate the header addresses for pdf File
*/
public static function generateHeaderAddresses(&$pdf, $order, $addressType, $patternRules, $width)
{
$maxY = 0;
$pdf->setY($pdf->GetY() + 5);
foreach(array_keys($addressType) as $type)
{
$currentY = $pdf->GetY();
$attributeName = 'id_address_'.$type;
$addressType[$type]['displayed'] = '';
$addressType[$type]['addressObject'] = new Address((int)($order->$attributeName));
$addressType[$type]['addressFields'] = AddressFormat::getOrderedAddressFields($addressType[$type]['addressObject']->id_country);
$addressType[$type]['addressFormatedValues'] = AddressFormat::getFormattedAddressFieldsValues(
$addressType[$type]['addressObject'],
$addressType[$type]['addressFields']);
foreach ($addressType[$type]['addressFields'] as $line)
if (($patternsList = explode(' ', $line)))
{
$tmp = '';
foreach($patternsList as $pattern)
if (!in_array($pattern, $patternRules['avoid']))
{
if ($pattern == 'State:name' &&
Country::getIsoById(Configuration::get('PS_COUNTRY_DEFAULT')) == 'US')
{
$state = &$addressType[$type]['addressFormatedValues'][$pattern];
$state = strtoupper(substr($state, 0, 2));
}
$tmp .= ((isset($addressType[$type]['addressFormatedValues'][$pattern]) &&
!empty($addressType[$type]['addressFormatedValues'][$pattern])) ?
(Tools::iconv('utf-8', self::encoding(), $addressType[$type]['addressFormatedValues'][$pattern]).' ') : '');
}
$tmp = trim($tmp);
$addressType[$type]['displayed'] .= (!empty($tmp)) ? $tmp."\n" : '';
}
$pdf->MultiCell($width, 6.0, $addressType[$type]['displayed'], 0, 'L', 0);
if ($pdf->GetY() > $maxY)
$maxY = $pdf->GetY();
$pdf->SetY($currentY);
$pdf->SetX($width + 10);
}
$pdf->SetY($maxY);
if ($maxY)
$pdf->Ln(5);
return $addressType;
}
Можно ли как-то прикрутить имя?