Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
order.php
1<?php
2
4
6{
15 static public function getBasketItemByItem(\Bitrix\Sale\BasketBase $basket, array $item)
16 {
17 foreach($basket as $basketItem)
18 {
20 if($item['ID'] == $basketItem->getField('PRODUCT_XML_ID'))
21 {
22 return $basketItem;
23 }
24 else
25 continue;
26 }
27 return false;
28 }
29
35 protected function entityCreateByFactory($typeId)
36 {
37 return \Bitrix\Sale\Exchange\Entity\SubordinateSale\EntityImportFactory::create($typeId);
38 }
39}