Skip to content

Commit

Permalink
Merge pull request #24 from mageplaza/2.4-develop
Browse files Browse the repository at this point in the history
2.4 develop
  • Loading branch information
Linhnv1902 authored Jul 17, 2023
2 parents 44bc6c2 + 9bc950d commit 583fd33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions Console/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->_helperData->deleteRecord($orderId);

$output->writeln('<info>The delete order process has been successful!</info>');
return 0;
} catch (Exception $e) {
$output->writeln("<error>{$e->getMessage()}</error>");
}
Expand Down
5 changes: 3 additions & 2 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ public function getMatchingOrders($storeId = null, $limit = 1000)
'main_table.entity_id = soa.parent_id',
[]
)
->where('soa.country_id IN (?)', $this->getCountriesConfig($storeId));
->where('soa.country_id IN (?)', $this->getCountriesConfig($storeId))
->where('soa.address_type IN (?)', 'shipping');
}

return $orderCollection;
Expand Down Expand Up @@ -167,7 +168,7 @@ public function getOrderStatusConfig($storeId = null)
*/
public function getOrderCustomerGroupConfig($storeId = null)
{
return explode(',', $this->getScheduleConfig('customer_groups', $storeId));
return explode(',', (string)$this->getScheduleConfig('customer_groups', $storeId));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "mageplaza/module-delete-orders",
"description": "Magento 2 Delete Orders extension",
"require": {
"mageplaza/module-core": "^1.4.5"
"mageplaza/module-core": "^1.5.3"
},
"type": "magento2-module",
"version": "4.0.1",
"version": "4.0.2",
"license": "proprietary",
"authors": [
{
Expand Down

0 comments on commit 583fd33

Please sign in to comment.