- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
public function getAddressInfo($address) {
if (!$address instanceof SalesOrderAddressShipping) return '';
$country = $address->getCountry();
$region = $address->getRegion();
$city = $address->getCity();
$zipCode = $address->getZipCode();
$street = $address->getStreet();
$houseNumber = $address->getHouseNumber();
$building = $address->getBuilding();
$appartment = $address->getAppartment();
$addressInfo = '';
$addressInfo .= $city . ', ' . $street . ' ' . $houseNumber;
$addressInfo .= !empty($building) ? ', корп. ' . $building : '';
$addressInfo .= !empty($appartment) ? ', кв. ' . $appartment : '';
return $addressInfo;
}
public function getAddressInfoWithoutApartment($address) {
if (!$address instanceof SalesOrderAddressShipping) return '';
$country = $address->getCountry();
$region = $address->getRegion();
$city = $address->getCity();
$zipCode = $address->getZipCode();
$street = $address->getStreet();
$houseNumber = $address->getHouseNumber();
$building = $address->getBuilding();
$appartment = $address->getAppartment();
$addressInfo = '';
$addressInfo .= $city . ', ' . $street . ' ' . $houseNumber;
$addressInfo .= !empty($building) ? ', корп. ' . $building : '';
//$addressInfo .= !empty($appartment) ? ', кв. ' . $appartment : '';
return $addressInfo;
}
а сам класс называется AdminOrderListContentView, ебиеговрот....