Commit 3171562e authored by Kulya's avatar Kulya 😊

Upd alvbx add prods12

parent 6a6721ff
...@@ -843,9 +843,14 @@ class AloVoiceRest ...@@ -843,9 +843,14 @@ class AloVoiceRest
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=="F" || $type=="string") && ($pfk != "purchasingCurrency") && ($pfk != "purchasingPrice") && ($pfk != "previewTextType") && ($pfk != "detailTextType")){ if( ($type=="S" || $type=="F" || $type=="string") && ($pfk != "code") && ($pfk != "purchasingCurrency") && ($pfk != "purchasingPrice") && ($pfk != "previewTextType") && ($pfk != "detailTextType")){
if($type=="F"){
$pfk = "F_".$pfk;
}
$arFileds[$pfk] = [ $arFileds[$pfk] = [
'code' => "F_".$pfk, 'code' => $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