23 $this->parentBasketItem = $basketItem;
49 return parent::addItem($item);
57 public static function getList(array $parameters)
62 $basketClassName = $registry->getBasketClassName();
64 return $basketClassName::getList($parameters);
77 public function deleteItem($index)
83 $item = $this->getItemByIndex($index);
85 $order->onBeforeBasketItemDelete($item);
88 return parent::deleteItem($index);
98 $bundleCollectionClassName = $registry->getBundleCollectionClassName();
100 return new $bundleCollectionClassName();
112 $select = array(
"ID",
"LID",
"MODULE",
"PRODUCT_ID",
"QUANTITY",
"WEIGHT",
113 "DELAY",
"CAN_BUY",
"PRICE",
"CUSTOM_PRICE",
"BASE_PRICE",
'PRODUCT_PRICE_ID',
"CURRENCY",
'BARCODE_MULTI',
114 "RESERVED",
"RESERVE_QUANTITY",
"NAME",
"CATALOG_XML_ID",
"VAT_RATE",
"NOTES",
"DISCOUNT_PRICE",
115 "PRODUCT_PROVIDER_CLASS",
"CALLBACK_FUNC",
"ORDER_CALLBACK_FUNC",
"PAY_CALLBACK_FUNC",
"CANCEL_CALLBACK_FUNC",
116 "DIMENSIONS",
"TYPE",
"SET_PARENT_ID",
"DETAIL_PAGE_URL",
"FUSER_ID",
'MEASURE_CODE',
'MEASURE_NAME',
'ORDER_ID',
117 'DATE_INSERT',
'DATE_UPDATE',
'PRODUCT_XML_ID',
'SUBSCRIBE',
'RECOMMENDATION',
'VAT_INCLUDED',
'SORT'
122 $res = static::getList(array(
125 "order" => array(
'SORT' =>
'ASC',
'ID' =>
'ASC'),
127 while ($item = $res->fetch())
129 $itemList[$item[
'ID']] = $item;
132 $this->loadFromArray($itemList);
151 public function createClone(\SplObjectStorage $cloneEntity =
null)
153 if ($cloneEntity ===
null)
155 $cloneEntity = new \SplObjectStorage();
159 $bundleClone = parent::createClone($cloneEntity);
233 $shipmentCollection = $order->getShipmentCollection();
234 if ($shipmentCollection)
236 $r = $shipmentCollection->onBasketModify(
EventActions::UPDATE, $item, $name, $oldValue, $value);
237 if (!$r->isSuccess())
239 $result->addErrors($r->getErrors());