57 public function setItemData($basketCode, &$productData, &$item)
60 if(!empty($productData[
"PROVIDER_DATA"]) && CheckSerializedData($productData[
"PROVIDER_DATA"]))
62 if($providerData = unserialize($productData[
"PROVIDER_DATA"], [
'allowed_classes' =>
false]))
64 $this->builder->sendProductCachedDataToProvider($item, $this->builder->getOrder(), $providerData);
68 if(!empty($productData[
"SET_ITEMS_DATA"]) && CheckSerializedData($productData[
"SET_ITEMS_DATA"]))
70 $productData[
"SET_ITEMS"] = unserialize($productData[
"SET_ITEMS_DATA"], [
'allowed_classes' =>
false]);
73 $res = $item->setField(
"QUANTITY", $item->getField(
"QUANTITY")+$productData[
"QUANTITY"]);
75 if(!$res->isSuccess())
77 $this->builder->getErrorsContainer()->addErrors($res->getErrors());