1
0
mirror of synced 2024-11-22 13:26:10 +03:00

rm var_dump

This commit is contained in:
Grisha Pomadchin 2013-10-02 17:49:24 +04:00
parent 8508c6bebb
commit 3644c385b3

View File

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