I cannot find the required state within the 'Order States To Apply Status To' setting's list. What should I do?

I cannot find the required state within the 'Order States To Apply Status To' setting's list. What should I do?

The Order States To Apply Status To list contains Magento order states codes. You can find the list of the Magento state codes with the assigned statuses on the Stores → Settings → Order Status page.



If the state does not have any default status in this table, as in the screenshot below, the state code won’t be listed on the status management page.




   
In order to resolve the issue, adjustments in the database will be required. For instance, to make the New state appear on the list, please access the database (either from the CLI or via phpMyAdmin tool), find the sales_order_status_state table and change the is default column value for the New state from 0 to 1. 



After saving the changes, the state will appear on the list:

      • Related Articles

      • Are my "Each N-th" working correctly, and how is the "At first apply discount to" setting used?

        One group of actions from the Special Promotions module called Each N-th has a special At first apply discount to setting that might be considered inconsistent and broken at a first glance if it is used to add a simple discount to some cheapest ...
      • Will the customers be notified if I change the order status using Mass Order Actions extension?

        Starting from Mass Order Actions v.1.6.0, the order status can be changed using two mass actions: Change Status and Change Status and Notify. Change Status means the status will be changed, but the customers will not receive any email notifications ...
      • How to apply statuses only to products with specific quantity?

        The module works with the Magento product attributes as a basis for forming the product collection that receives a custom stock status. In Magento, quantity is a system attribute that cannot be used in rules' conditions. Due to this, setting a status ...
      • Custom Stock Status API

        1. Amasty\Stockstatus\Api\RuleRepositoryInterface - class for managing custom stock status rules. POST /V1/amasty_stockstatus/rule, method="save" - create a custom stock rule; PUT /V1/amasty_stockstatus/rule/:id, method="save" - edit a custom stock ...
      • How to set an attribute to an order?

        In order to set an attribute to an order, the following steps are required. 1. The first step is to obtain the order object based on the order ID. This is done using Magento's OrderRepository: 1 2 3 use Magento\Sales\Model\OrderRepository; $order = ...