/
AutoOrderCompletion (optional)
optional
AutoOrderCompletion (optional)
GitHub - 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.
Related content
Instant purchase (optional)
Instant purchase (optional)
Read with this
Shipcloud (optional)
Shipcloud (optional)
More like this
ImageOptimization
ImageOptimization
Read with this
In Store Pickup Payment (optional)
In Store Pickup Payment (optional)
More like this
Discount
Read with this
AutoOrderCancel (optional)
AutoOrderCancel (optional)
More like this