optional
AutoOrderCompletion (optional)
https://github.com/magesuite/auto-order-completion
The module adds the possibility to enable auto invoicing and auto shipping for orders.
Installation
This module is optional.
composer require "creativestyle/magesuite-auto-order-completion" ^1.0.0
Admin settings
Admin settings for the module are placed in Stores -> Configuration -> Sales -> Auto order completion
Â
Settings:
Field | Options | Comment |
---|---|---|
Enable auto invoicing |  Yes/No | Default value: No |
Enable auto shipping |  Yes/No | Default value: No |
Backend
Add documentation for BE code
Command for complete Orders
bin/magento order:complete
vendor/creativestyle/magesuite-auto-order-completion/Console/Command/CompleteOrders.php:27
class CompleteOrders extends \Symfony\Component\Console\Command\Command
{
protected function execute(
\Symfony\Component\Console\Input\InputInterface $input,
\Symfony\Component\Console\Output\OutputInterface $output
) {
$this->orderProcessorFactory->create()->completeOrders();
}
}
Cron for complete Orders
vendor/creativestyle/magesuite-auto-order-completion/Cron/CompletePendingOrders.php:20
Order processor
If auto invoicing enabled, than prepare Invoice
If auto shipping enabled, than create shipment
vendor/creativestyle/magesuite-auto-order-completion/Service/OrderProcessor.php:50
Invoice Creator
vendor/creativestyle/magesuite-auto-order-completion/Service/InvoiceCreator.php:37
Â
vendor/magento/module-sales/Model/Service/InvoiceService.php:149
Shipment Creator
vendor/creativestyle/magesuite-auto-order-completion/Service/ShipmentCreator.php:25
Â
vendor/magento/module-sales/Model/Order/ShipmentFactory.php:74
Â
Frontend
The module does not provide any functionality for the storefront.