Commit 8f8a509e authored by Kulya's avatar Kulya 😊

Upd alvbx add prods6

parent 0c7aaa22
...@@ -387,6 +387,7 @@ class AloVoiceRest ...@@ -387,6 +387,7 @@ class AloVoiceRest
"name" => $data["name"], "name" => $data["name"],
"code" => $this->translit($data["name"]), "code" => $this->translit($data["name"]),
"xmlId" => $xmlId, "xmlId" => $xmlId,
"iblockSectionId" => (!empty($data["price"])) ? $data["sid"] : 0,
"quantity" => (!empty($data["qty"])) ? $data["qty"] : 0, "quantity" => (!empty($data["qty"])) ? $data["qty"] : 0,
"quantityTrace" => 'N', "quantityTrace" => 'N',
]; ];
...@@ -395,11 +396,7 @@ class AloVoiceRest ...@@ -395,11 +396,7 @@ class AloVoiceRest
$arNewProductParams["purchasingCurrency"] = $currency; $arNewProductParams["purchasingCurrency"] = $currency;
$arNewProductParams["purchasingPrice"] = $data["price"]; $arNewProductParams["purchasingPrice"] = $data["price"];
} }
if(!empty($data["sid"])){
$arNewProductParams["iblockSectionId"] = $data["sid"];
}
if(!empty($conf["bxbillzfields"])){ if(!empty($conf["bxbillzfields"])){
foreach($conf["bxbillzfields"] as $bxf=>$blzf){ foreach($conf["bxbillzfields"] as $bxf=>$blzf){
$bxFld = substr($bxf,9); $bxFld = substr($bxf,9);
......
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