Commit 5b401a45 authored by Kulya's avatar Kulya 😊

Upd alvbx add prods12

parent ce8c6246
...@@ -463,7 +463,7 @@ class AloVoiceRest ...@@ -463,7 +463,7 @@ class AloVoiceRest
] ]
]; ];
$arProduct = BxRest::call('catalog.price.modify',["fields"=>$arProdPrice]); BxRest::call('catalog.price.modify',["fields"=>$arProdPrice]);
} }
} }
...@@ -841,10 +841,11 @@ class AloVoiceRest ...@@ -841,10 +841,11 @@ class AloVoiceRest
$arFileds = []; $arFileds = [];
if(!empty($res["result"]["product"])){ if(!empty($res["result"]["product"])){
foreach($res["result"]["product"] as $pfk=>$prf){ foreach($res["result"]["product"] as $pfk=>$prf){
$type = (!empty($prf["propertyType"])) ? $prf["propertyType"] : $prf["type"]; $type = (!empty($prf["propertyType"])) ? $prf["propertyType"] : $prf["type"];
if($type=="S" || $type=="string"){ if( ($type=="S" || $type=="F" || $type=="string") && ($pfk != "previewTextType") && ($pfk != "detailTextType")){
$arFileds[$pfk] = [ $arFileds[$pfk] = [
'code' => $pfk, 'code' => "F_".$pfk,
'title' => $prf["name"], 'title' => $prf["name"],
]; ];
......
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