1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
byproductcategory.php
См. документацию.
1<?php
2namespace Bitrix\Sale\Delivery\Restrictions;
3
4use Bitrix\Main\Localization\Loc;
5use Bitrix\Sale\Internals\Entity;
6use Bitrix\Sale\Services\Base\ProductCategoryRestriction;
7use Bitrix\Sale\Shipment;
8
9Loc::loadMessages(__FILE__);
10
17{
18 public static $easeSort = 400;
19
23 protected static function getJsHandler(): string
24 {
25 return 'BX.Sale.Delivery';
26 }
27
32 public static function getClassDescription() : string
33 {
34 return Loc::getMessage("SALE_DLVR_RSTR_BY_PC_DESCRIPT");
35 }
36
41 protected static function getBasketItems(Entity $entity): array
42 {
43 if (!$entity instanceof Shipment)
44 {
45 return [];
46 }
47
48 $basketItems = [];
49
51 foreach ($entity->getShipmentItemCollection()->getSellableItems() as $shipmentItem)
52 {
53 $basketItems[] = $shipmentItem->getBasketItem();
54 }
55
56 return $basketItems;
57 }
58}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$entity
Определения ufield.php:9