diff --git a/doc/FAQ/FAQ.md b/doc/FAQ/FAQ.md index 015e022..d9d1af7 100644 --- a/doc/FAQ/FAQ.md +++ b/doc/FAQ/FAQ.md @@ -31,9 +31,12 @@ ``` diff --git a/src/include/class-wc-retailcrm-uploader.php b/src/include/class-wc-retailcrm-uploader.php index 3f80011..2422d27 100644 --- a/src/include/class-wc-retailcrm-uploader.php +++ b/src/include/class-wc-retailcrm-uploader.php @@ -239,8 +239,8 @@ if (class_exists('WC_Retailcrm_Uploader') === false) { public function uploadConsole($entity, $page = 0) { - $ordersPages = ceil($this->getCountOrders() / 50); - $customerPages = ceil($this->getCountUsers() / 50); + $ordersPages = (int) ceil($this->getCountOrders() / 50); + $customerPages = (int) ceil($this->getCountUsers() / 50); try { switch ($entity) { @@ -264,6 +264,8 @@ if (class_exists('WC_Retailcrm_Uploader') === false) { public function archiveUpload($entity, $page, $totalPages) { + echo $entity . ' uploading started' . PHP_EOL; + do { if ($entity === 'orders') { $this->uploadArchiveOrders($page);