fix resolves
This commit is contained in:
parent
f6d2b9762a
commit
3e1827954c
3 changed files with 7 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
## 2024-12-19 4.8.15
|
||||
* Add export archive in CRM
|
||||
* Fix uploading archive in CRM using console script
|
||||
|
||||
## 2024-11-07 4.8.14
|
||||
* The method for determining the stock quantity has been optimized
|
||||
|
|
|
@ -246,14 +246,14 @@ if (class_exists('WC_Retailcrm_Uploader') === false) {
|
|||
try {
|
||||
switch ($entity) {
|
||||
case 'orders':
|
||||
$this->ArchiveUpload('orders', $page, $ordersPages);
|
||||
$this->archiveUpload('orders', $page, $ordersPages);
|
||||
break;
|
||||
case 'customers':
|
||||
$this->ArchiveUpload('customers', $page, $customerPages);
|
||||
$this->archiveUpload('customers', $page, $customerPages);
|
||||
break;
|
||||
case 'full_upload':
|
||||
$this->ArchiveUpload('customers', 0, $customerPages);
|
||||
$this->ArchiveUpload('orders', 0, $ordersPages);
|
||||
$this->archiveUpload('customers', 0, $customerPages);
|
||||
$this->archiveUpload('orders', 0, $ordersPages);
|
||||
break;
|
||||
default:
|
||||
echo 'Unknown entity: ' . $entity;
|
||||
|
@ -268,11 +268,10 @@ if (class_exists('WC_Retailcrm_Uploader') === false) {
|
|||
for ($i = $page; $i <= $countPages; $i++) {
|
||||
if ($entity === 'orders') {
|
||||
$this->uploadArchiveOrders($i);
|
||||
echo $page . ' page uploaded' . PHP_EOL;
|
||||
} elseif ($entity === 'customers') {
|
||||
$this->uploadArchiveCustomers($i);
|
||||
echo $page . ' page uploaded' . PHP_EOL;
|
||||
}
|
||||
echo $page . ' page uploaded' . PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i
|
|||
|
||||
== Changelog ==
|
||||
= 4.8.15 =
|
||||
* Add export archive in CRM
|
||||
* Fix uploading archive in CRM using console script
|
||||
|
||||
= 4.8.14 =
|
||||
* The method for determining the stock quantity has been optimized
|
||||
|
|
Loading…
Add table
Reference in a new issue