Commit 362c4f3c authored by Kulya's avatar Kulya 😊

Upd alvbx add prods10

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