Skip to content

Commit

Permalink
v2.2.0: set order status to complete after shipment creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Chlododev committed Aug 1, 2023
1 parent 81d7d43 commit 811c661
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Observer/TrunkrsShipmentSaveAfter.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function execute(Observer $observer)
->setShippingLabel(file_get_contents($labelUrl));

$shipment->save();
$order->setStatus('complete');
} catch (\Exception $e) {
$this->logger->critical($e->getMessage());
throw new \Magento\Framework\Exception\LocalizedException(
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"trunkrs magento 2 shipping method"
],
"type": "magento2-module",
"version": "2.1.8",
"version": "2.2.0",
"license": [
"MIT"
],
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Trunkrs_Carrier" setup_version="2.1.8">
<module name="Trunkrs_Carrier" setup_version="2.2.0">
<sequence>
<module name="Magento_Backend"/>
<module name="Magento_Config"/>
Expand Down
2 changes: 1 addition & 1 deletion view/adminhtml/templates/system/config/trunkrs.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ echo "<div id='trunkrs-app'></div>";
'browserInfo' => $_SERVER['HTTP_USER_AGENT'],
'phpVersion' => phpversion(),
'phpExtensions' => get_loaded_extensions(),
'pluginVersion' => 'v2.1.8'
'pluginVersion' => 'v2.2.0'
],
'disableAutoShipment' => $block->getDisableAutoShipment()
]);
Expand Down

0 comments on commit 811c661

Please sign in to comment.