Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7547043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:21:11+00:00 2026-05-30T09:21:11+00:00

I was wondering whether there is any way to create custom Orders statuses in

  • 0

I was wondering whether there is any way to create custom Orders statuses in Magento. I am developing a Magento Extension in which I have to add some custom order status to magneto orders.

I googled a lot but didn’t find any good resources for this.

Could anybody explain how to do this, any resources to refer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:21:12+00:00Added an answer on May 30, 2026 at 9:21 am

    Lets say you want to add “Authorized Payment” status with “authorized” code.

    Add the following to config.xml of your module under config/global:

        <sales>
            <order>
                <statuses>
                    <authorized translate="label">
                        <label>Authorized Payment</label>
                    </authorized>
                </statuses>
                <states>
                   <authorized translate="label">
                        <label>Authorized Payment</label>
                        <statuses>
                            <authorized default="1"/>
                        </statuses>
                        <visible_on_front>1</visible_on_front>                      
                   </authorized>
                </states>
            </order>
        </sales>
    

    Earlier it was quite enough but in recent versions (1.5.x.x if I recall correctly) the following bit is also required. Add the following to mysql setup/update file of your extension:

    <?php
    
    $installer = $this;
    
    $statusTable        = $installer->getTable('sales/order_status');
    $statusStateTable   = $installer->getTable('sales/order_status_state');
    $statusLabelTable   = $installer->getTable('sales/order_status_label');
    
    $data = array(
        array('status' => 'authorized', 'label' => 'Authorized Payment')
    );
    $installer->getConnection()->insertArray($statusTable, array('status', 'label'), $data);
    
    $data = array(
        array('status' => 'authorized', 'state' => 'authorized', 'is_default' => 1)
    );
    $installer->getConnection()->insertArray($statusStateTable, array('status', 'state', 'is_default'), $data);
    
    ?>
    

    This technically adds new status to your system. Now you can set it to your order like this:

    $order->setState('authorized', true, 'Status history message')
          ->save();
    

    Please let me know if you have any questions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was just wondering whether there is some way to do this: I have
I am wondering whether there is any way to achieve partial JSP rendering in
I'm fairly new to the STL, so I was wondering whether there are any
I'm wondering whether there is a way to poll a socket in c# when
I was just wondering if there's any field which concerns the task-control programming (or
I wonder whether there is any automatic way of determining (at least roughly) the
Im just wondering whether there is a way to call a method where i
I was wondering whether there is a better way to load large Json data
I am wondering if there is a quick simple way to check whether a
I've been wondering whether there is a good "git export" solution that creates a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.