33 $productId = $basketItem->getProductId();
34 $providerName = $basketItem->getProviderName();
36 $isOrdable = ($basketItem->getField(
"CAN_BUY") ==
'Y' && $basketItem->getField(
"DELAY") ==
'N' && $basketItem->getField(
"SUBSCRIBE") ==
'N');
39 'BASKET_ITEM' => $basketItem,
40 'ITEM_CODE' => $basketItem->getBasketCode(),
41 'BASKET_ID' => $basketItem->getId(),
42 'BASKET_CODE' => $basketItem->getBasketCode(),
43 'PRODUCT_ID' => $productId,
44 'QUANTITY' => $basketItem->getNotPurchasedQuantity(),
45 'MODULE' => $basketItem->getField(
'MODULE'),
46 'IS_ORDERABLE' => $isOrdable,
47 'IS_BUNDLE_PARENT' =>
false,
48 'IS_BUNDLE_CHILD' =>
false,
49 'IS_NEW' => ($basketItem->getId() == 0),
50 'SUBSCRIBE' => ($basketItem->getField(
'SUBSCRIBE') ==
'Y'),
55 $fields[
'IS_BUNDLE_PARENT'] = $basketItem->isBundleParent();
56 $fields[
'IS_BUNDLE_CHILD'] = $basketItem->isBundleChild();
59 if (trim((
string)$providerName) ===
'')
68 $this->addItem($productId, $fields);
76 $basketItem = $shipmentItem->getBasketItem();
78 $productId = $basketItem->getProductId();
79 $providerName = $basketItem->getProviderName();
82 'PRODUCT_ID' => $productId,
83 'BASKET_CODE' => $basketItem->getBasketCode(),
84 'QUANTITY' => $basketItem->getQuantity(),
86 'MODULE' => $basketItem->getField(
'MODULE'),
87 'SHIPMENT_ITEM' => $shipmentItem
90 if (trim((
string)$providerName) ===
'')
99 $this->addItem($productId, $fields);