Commit 3f1dfec9 authored by Kulya's avatar Kulya 😊

Upd alvbx add prods11

parent 362c4f3c
......@@ -444,13 +444,27 @@ class AloVoiceRest
}
}
}
var_dump($arNewProductParams);
BillzRest::setLog($arNewProductParams);
$arProduct = BxRest::call('catalog.product.add',["fields"=>$arNewProductParams]);
if(!empty($arProduct["result"]["element"]["id"])){
$arProdPrice = [
"product" => [
"id" => $arProduct["result"]["element"]["id"],
"prices" => [
[
"catalogGroupId" => $priceType,
"currency" => $currency,
"price" => $data["price"],
]
]
]
];
$arProduct = BxRest::call('catalog.price.modify',["fields"=>$arProdPrice]);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment