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
cb5ba408
Commit
cb5ba408
authored
Feb 13, 2022
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add billz clientId to order 13
parent
5e3cfd81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
AloVoiceRest.php
vendor/alovoice/src/AloVoiceRest.php
+2
-2
BillzRest.php
vendor/alovoice/src/BillzRest.php
+6
-4
No files found.
vendor/alovoice/src/AloVoiceRest.php
View file @
cb5ba408
...
...
@@ -635,7 +635,7 @@ class AloVoiceRest
$prdAllCnd
=
count
(
$first
[
"answer"
][
"result"
]);
echo
"Загружено "
.
$prdAllCnd
.
" товаров!"
;
echo
"Импортирования в Т
а
рговый каталог..."
;
echo
"Импортирования в Т
o
рговый каталог..."
;
foreach
(
$first
[
"answer"
][
"result"
]
as
$prd
){
$this
->
bx_process_product
(
$prd
);
...
...
@@ -921,7 +921,7 @@ class AloVoiceRest
private
function
create_billz_order
(
$r
=
false
)
{
$officeId
=
1347
;
$officeId
=
1
594
;
//1
347;
$arOrderProducts
=
[
[
"office_id"
=>
$officeId
,
...
...
vendor/alovoice/src/BillzRest.php
View file @
cb5ba408
...
...
@@ -77,7 +77,7 @@ require_once (__DIR__.'/keys.php');
$price
=
(
!
empty
(
$prd
[
"price"
]))
?
$prd
[
"price"
]
:
0
;
$dsnt
=
(
!
empty
(
$prd
[
"discount"
]))
?
$prd
[
"discount"
]
:
0
;
$arProducts
[]
=
[
//
"billzOfficeID" => $prd["office_id"],
"billzOfficeID"
=>
$prd
[
"office_id"
],
"billzProductID"
=>
$prd
[
"billz_id"
],
"productID"
=>
$prd
[
"id"
],
// "name" => $prd["name"],
...
...
@@ -113,8 +113,7 @@ require_once (__DIR__.'/keys.php');
}
public
static
function
getCatalog
(
$page
=
1
,
$cnt
=
1
)
{
$result
=
static
::
callCurl
(
"catalog.get"
,[
$catalogParams
=
[
"PerPage"
=>
(
int
)
$cnt
,
"Page"
=>
(
int
)
$page
,
"Sort"
=>
[
...
...
@@ -122,7 +121,10 @@ require_once (__DIR__.'/keys.php');
"field"
=>
"id"
,
"order"
=>
"desc"
]
]);
];
$catalogParams
=
[
'Filter.BarCodes'
=>
'4780058100438'
];
$result
=
static
::
callCurl
(
"catalog.get"
,
$catalogParams
);
return
$result
;
}
...
...
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