rm var_dump
This commit is contained in:
parent
8508c6bebb
commit
3644c385b3
@ -302,7 +302,6 @@ class ICrmOrderActions
|
||||
|
||||
// pushing existing orders
|
||||
foreach ($orderHistory as $order) {
|
||||
var_dump($order);
|
||||
|
||||
// выбрасываем заказы от 'новых клиентов'
|
||||
if(!isset($order['customer']) && !$order['customer'])
|
||||
@ -356,8 +355,6 @@ class ICrmOrderActions
|
||||
$rsOrderProps = CSaleOrderPropsValue::GetList(array(), array('ORDER_ID' => $arFields['ID']));
|
||||
|
||||
while ($ar = $rsOrderProps->Fetch()) {
|
||||
if($order['externalId'] == 45)
|
||||
var_dump($ar);
|
||||
if (isset($order['deliveryAddress']) && $order['deliveryAddress']) {
|
||||
switch ($ar['CODE']) {
|
||||
case 'CITY': if (isset($order['deliveryAddress']['city']))
|
||||
@ -501,14 +498,6 @@ class ICrmOrderActions
|
||||
if(!$p)
|
||||
$p = CIBlockElement::GetByID($item['offer']['externalId'])->Fetch();
|
||||
|
||||
var_dump($p);
|
||||
|
||||
var_dump(GetCatalogProductPrice($item['offer']['externalId'], 1));
|
||||
//if(!$p) // if not found
|
||||
// continue;
|
||||
|
||||
//echo 1;
|
||||
|
||||
// del from basket
|
||||
if(isset($item['deleted']) && $item['deleted']) {
|
||||
CSaleBasket::Delete($p['ID']);
|
||||
@ -516,8 +505,6 @@ class ICrmOrderActions
|
||||
}
|
||||
|
||||
// change existing basket items
|
||||
|
||||
|
||||
$arProduct = array();
|
||||
|
||||
// create new
|
||||
@ -559,14 +546,9 @@ class ICrmOrderActions
|
||||
if (isset($item['offer']['name']) && $item['offer']['name'])
|
||||
$arProduct['NAME'] = $item['offer']['name'];
|
||||
|
||||
|
||||
var_dump($arProduct);
|
||||
|
||||
var_dump(CSaleBasket::Add($arProduct));
|
||||
//continue;
|
||||
CSaleBasket::Add($arProduct);
|
||||
}
|
||||
|
||||
if ($p) {
|
||||
// update old
|
||||
if (isset($item['initialPrice']) && $item['initialPrice'])
|
||||
$arProduct['PRICE'] = (double) $item['initialPrice'];
|
||||
@ -586,7 +568,6 @@ class ICrmOrderActions
|
||||
|
||||
CSaleBasket::Update($p['ID'], $arProduct);
|
||||
}
|
||||
}
|
||||
|
||||
// orderUpdate
|
||||
$arFields = self::clearArr(array(
|
||||
|
Loading…
Reference in New Issue
Block a user