Commit 362c4f3c authored by Kulya's avatar Kulya 😊

Upd alvbx add prods10

parent eb5af32b
......@@ -362,6 +362,7 @@ class AloVoiceRest
$conf = self::get_billzconf();
$priceType = 2;
$currency = 'UZS';
$result = false;
......@@ -383,7 +384,6 @@ class AloVoiceRest
if(!empty($result["result"]["products"])){
$arProduct = $result["result"]["products"][0];
}
var_dump($data);
if(empty($arProduct)){
$arNewProductParams = [
......@@ -397,6 +397,7 @@ class AloVoiceRest
];
if(!empty($data["price"])){
$arNewProductParams["priceType"] = $priceType;
$arNewProductParams["purchasingCurrency"] = $currency;
$arNewProductParams["purchasingPrice"] = $data["price"];
}
......@@ -433,6 +434,7 @@ class AloVoiceRest
if($ik==0){
$arNewProductParams["previewPicture"] = $arPic;
$arNewProductParams["property100"] = $arPic;
$arPic["value"]["fileData"][1] = 'data:image/' . $arImage["extension"] . ';base64,' . $arImage["base64"];
$arNewProductParams["detailPicture"] = $arPic;
}
......
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