Commit 5ece354c authored by Kulya's avatar Kulya 😊

Upd alvbx add prods3

parent 5126f0ca
...@@ -371,7 +371,7 @@ class AloVoiceRest ...@@ -371,7 +371,7 @@ class AloVoiceRest
$result = BxRest::call('catalog.product.list',[ $result = BxRest::call('catalog.product.list',[
"filter" => [ "filter" => [
"xmlId" => $data["xmlId"], "xmlId" => $xmlId,
"iblockId" => $conf["bx_catalog_id"], "iblockId" => $conf["bx_catalog_id"],
], ],
"select" => $select "select" => $select
...@@ -386,7 +386,7 @@ class AloVoiceRest ...@@ -386,7 +386,7 @@ class AloVoiceRest
"iblockId" => $conf["bx_catalog_id"], "iblockId" => $conf["bx_catalog_id"],
"name" => $data["name"], "name" => $data["name"],
"code" => $this->translit($data["name"]), "code" => $this->translit($data["name"]),
"xmlId" => $data["id"], "xmlId" => $xmlId,
"quantity" => (!empty($data["qty"])) ? $data["qty"] : 0, "quantity" => (!empty($data["qty"])) ? $data["qty"] : 0,
"quantityTrace" => 'N', "quantityTrace" => 'N',
]; ];
...@@ -411,7 +411,7 @@ class AloVoiceRest ...@@ -411,7 +411,7 @@ class AloVoiceRest
$blzVal = $blzf; $blzVal = $blzf;
} }
if( $bxFld != "xmlId" && $bxFld != "quantity" ){ if( $bxFld != "ID" && $bxFld != "xmlId" && $bxFld != "quantity" ){
$arNewProductParams[$bxFld] = $blzVal; $arNewProductParams[$bxFld] = $blzVal;
} }
} }
......
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