Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
orderinfo.php
1<?php
2
3
5
6
11
12Loc::loadMessages(__FILE__);
13
15{
16 protected static function getOrderInfoBlock(Order $order)
17 {
18 $result = '';
19
20 $relation = Relation::getByEntity(
21 EntityType::ORDER, $order->getId(),
22 \Bitrix\Sale\Exchange\Integration\CRM\EntityType::DEAL, '');
23
24 if(isset($relation['DST_ENTITY_ID']) && $relation['DST_ENTITY_ID']>0)
25 {
26 $result = '<div class="adm-bus-orderinfoblock-content">
27 <div class="adm-bus-orderinfoblock-content-block-customer">
28 <ul class="adm-bus-orderinfoblock-content-customer-info">
29 <li>
30 <span class="adm-bus-orderinfoblock-content-customer-info-param">'.Loc::getMessage('SALE_ORDER_INFO_LINK').'</span>
31 <span class="adm-bus-orderinfoblock-content-customer-info-separator"></span>
32 <span class="adm-bus-orderinfoblock-content-customer-info-value" id="order_info_buyer_name">'.$relation['DST_ENTITY_ID'].'</span>
33 </li>
34 </ul>
35 </div>
36 </div>';
37 }
38
39 return $result;
40 }
41}
static loadMessages($file)
Definition loc.php:64
static getByEntity($sourceEntityTypeId, $sourceEntityId, $destinationEntityTypeId, $destinationEntityId='')
Definition relation.php:88