Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmiBX
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitrix
AmiBX
Commits
61234b47
Commit
61234b47
authored
Dec 09, 2021
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upd alvbx add prods7
parent
999200b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
AloVoiceRest.php
vendor/alovoice/src/AloVoiceRest.php
+9
-1
No files found.
vendor/alovoice/src/AloVoiceRest.php
View file @
61234b47
...
...
@@ -359,9 +359,12 @@ class AloVoiceRest
if
(
empty
(
$data
)){
return
false
;
}
$conf
=
self
::
get_billzconf
();
$currency
=
'UZS'
;
$result
=
false
;
if
(
!
empty
(
$conf
[
"bx_catalog_id"
])){
$arProduct
=
[];
...
...
@@ -387,7 +390,7 @@ class AloVoiceRest
"name"
=>
$data
[
"name"
],
"code"
=>
$this
->
translit
(
$data
[
"name"
]),
"xmlId"
=>
$xmlId
,
"iblockSectionId"
=>
(
!
empty
(
$data
[
"
price
"
]))
?
$data
[
"sid"
]
:
0
,
"iblockSectionId"
=>
(
!
empty
(
$data
[
"
sid
"
]))
?
$data
[
"sid"
]
:
0
,
"quantity"
=>
(
!
empty
(
$data
[
"qty"
]))
?
$data
[
"qty"
]
:
0
,
"quantityTrace"
=>
'N'
,
];
...
...
@@ -429,6 +432,8 @@ class AloVoiceRest
if
(
$ik
==
0
){
$arNewProductParams
[
"previewPicture"
]
=
$arPic
;
$arPic
[
"value"
][
"fileData"
][
1
]
=
'data:image/'
.
$arImage
[
"extension"
]
.
';base64,'
.
$arImage
[
"base64"
];
$arNewProductParams
[
"detailPicture"
]
=
$arPic
;
}
elseif
(
$ik
==
1
){
$arNewProductParams
[
"detailPicture"
]
=
$arPic
;
...
...
@@ -437,6 +442,8 @@ class AloVoiceRest
}
}
BillzRest
::
setLog
(
$arNewProductParams
);
$arProduct
=
BxRest
::
call
(
'catalog.product.add'
,[
"fields"
=>
$arNewProductParams
]);
}
}
...
...
@@ -455,6 +462,7 @@ class AloVoiceRest
$return
=
[
'name'
=>
$arInfo
[
"basename"
],
'base64'
=>
$data
,
'extension'
=>
$arInfo
[
"extension"
],
];
return
$return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment