01) Access the Control Panel
02) After login click Configuration >> Orders Setting >> edit the options:
Enable Auto Cancel Order and Replace Stock: true = On / false = Off
Cancel and replace stock auto if you have this status: Select 3 order status options to automatically cancel and reset the stock of products. Attention: All orders with these statuses will be canceled, stocks will be automatically restored and customers will receive cancellation emails automatically.
Cancel and replace stock auto change for this status: The order will be changed to this status automatically
Email Template Auto Cancel Order and Replace Stock: E-mail to be sent to buyer automatically
How many Days for Auto Cancel Order and Replace Stock: How many days for the process to take place automatically. Fill only number in this field.
03) After clicking Update.