WordPress
- 6 ответов
- 0 вопросов
3
Вклад в тег
$order = \Bitrix\Sale\Order::load($arOrder['ID']);
$shipmentCollection = $order->getShipmentCollection();
$stores = \Bitrix\Sale\Delivery\ExtraServices\Manager::getExtraServicesList($arOrder['DELIVERY_ID']);
foreach ($shipmentCollection as $shipment){
$extra = $shipment->getExtraServices(); //массив значений доп.услуги, типа array([10]=>'Y')
if(!empty($extra)){
foreach($extra as $key => $value){
if($value == 'Y')
echo $stores[$key]['NAME']; // получаем наименование доп. услуги
}
}
}