Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    magento-hyperlocal-marketplace-guide

    Create Custom Order Status Programatically in Magento2

    Let’s learn how to create custom order status in Magento2

    I am using Setup script to create custom order status.

    1. Create a file in you custom module like:
    Webkul/OrderManagement/Setup/InstallData.php


    now run: php bin/magento setup:upgrade command

    Check Order status grid now Stores->Order Status

     

    Thanks

    . . .

    Comments (2)

    Add Your Comment

  • Łukasz Bajsarowicz
    In my opinion, “InstallSchema” is definately wrong place to perform such actions.
    • Mahesh Singh
      Yes, you are right Łukasz, we need to do this action in Setup/InstallData.php. I will update it, thanks for observing this.
  • Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close