1

I have created one extension for custom order status. In that, I want to add new statuses for orders. That is working fine in Magento 2.3.7.

But in Magento 2.4.4 order status is updated as per the requirement but it is not showing in the front end or in the admin.

While checking the order status label at admin or frontend it returns a blank value.

I have created a preference of Magento\Sales\Model\Order\Config class to display the order status but it is returning blank for custom status and respective status for default statues.

Frontend Image: https://i.sstatic.net/qfaX8.png
https://i.sstatic.net/gVM1J.png

Backend Image: https://i.sstatic.net/n71oK.png
https://i.sstatic.net/TJJ9V.png

1 Answer 1

0

See sales_order_status_state table and set visible_on_front to 1 for your custom status.

You can see correct example how to add status in Order Status Magento 2.4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.