Magento saves the company name at the customer’s default address, so it’s a bit more difficult to get.
, , . , , , .
, , .
EDIT: .
, , :
$order->getCustomerName();
$order->getBillingAddress()->getName();
, . / / ( ). , :
public function getCustomerName() {
if($this->getBillingAddress()->getCompany()) {
return $this->getBillingAddress()->getCompany();
}
return parent::getCustomerName();
}
, . , , ( ).
, !
,
. , , , . , , , .
, , , , getCompanyName. , , , .