Changing Order Status Options

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
I see this has been discussed before on the forum, I was hoping for a definitive answer on how to properly change the order status options.  Is there any easy way to add and/or change the default order status?  

I'd like them to display the following options:

Pending
Processing
Queued
Setup
Shipping
Completed
Canceled

Hoping for a simple solution, but a complex solution is better than none.

Thanks!

-Freddy
7 years ago
fsr76 wrote:
I see this has been discussed before on the forum, I was hoping for a definitive answer on how to properly change the order status options.  Is there any easy way to add and/or change the default order status?  

I'd like them to display the following options:

Pending
Processing
Queued
Setup
Shipping
Completed
Canceled

Hoping for a simple solution, but a complex solution is better than none.

Thanks!

-Freddy


Hi Freddy,

Please go to following file, It contains OrderStatus Enum.

..\Libraries\Nop.Core\Domain\Orders\OrderStatus.cs

  
/// <summary>
    /// Represents an order status enumeration
    /// </summary>
    public enum OrderStatus : int
    {
        /// <summary>
        /// Pending
        /// </summary>
        Pending = 10,
        /// <summary>
        /// Processing
        /// </summary>
        Processing = 20,
        /// <summary>
        /// Complete
        /// </summary>
        Complete = 30,
        /// <summary>
        /// Cancelled
        /// </summary>
        Cancelled = 40
    }
}


You can add your status here, note that numeric/integer value here will be stored in database and on site you will see status you've set against it here in ENUM file.

Hope this helps you in setting up your own Order status.

The same we can set payment status ans shipping status also.
7 years ago
ajaysolanki wrote:
I see this has been discussed before on the forum, I was hoping for a definitive answer on how to properly change the order status options.  Is there any easy way to add and/or change the default order status?  

I'd like them to display the following options:

Pending
Processing
Queued
Setup
Shipping
Completed
Canceled

Hoping for a simple solution, but a complex solution is better than none.

Thanks!

-Freddy

Hi Freddy,

Please go to following file, It contains OrderStatus Enum.

..\Libraries\Nop.Core\Domain\Orders\OrderStatus.cs

  
/// <summary>
    /// Represents an order status enumeration
    /// </summary>
    public enum OrderStatus : int
    {
        /// <summary>
        /// Pending
        /// </summary>
        Pending = 10,
        /// <summary>
        /// Processing
        /// </summary>
        Processing = 20,
        /// <summary>
        /// Complete
        /// </summary>
        Complete = 30,
        /// <summary>
        /// Cancelled
        /// </summary>
        Cancelled = 40
    }
}


You can add your status here, note that numeric/integer value here will be stored in database and on site you will see status you've set against it here in ENUM file.

Hope this helps you in setting up your own Order status.

The same we can set payment status ans shipping status also.


Am I making these edits to the source code or the files that get uploaded to the webserver?  I don't see the following path in the website files...

..\Libraries\Nop.Core\Domain\Orders\OrderStatus.cs
7 years ago
Source code.  You can't add / change statuses without coding.
7 years ago
New York wrote:
Source code.  You can't add / change statuses without coding.


Anybody out there willing to help out a noob?  Step by step instructions, maybe.  

I downloaded and installed Visual Studio Community 2015....I guess I could figure it all out, maybe, if put a lot of time into it.  Hopefully it's simple.
7 years ago
In VS, open ..\Libraries\Nop.Core\Domain\Orders\OrderStatus.cs
Right-click OrderStatus, and "Find all references".
Note, that some of these statuses are important for proper workflow (e.g sending emails, etc.), so you should be careful adding new ones.

If you just want to change the name of an existing one as it is displayed in the site, you can just edit that in Admin using Languages > Locale resource strings
7 years ago
New York wrote:
In VS, open ..\Libraries\Nop.Core\Domain\Orders\OrderStatus.cs
Right-click OrderStatus, and "Find all references".
Note, that some of these statuses are important for proper workflow (e.g sending emails, etc.), so you should be careful adding new ones.

If you just want to change the name of an existing one as it is displayed in the site, you can just edit that in Admin using Languages > Locale resource strings


Thank you.  I think you may have just saved me a ton of work here. I checked in VS and saw a lot of references to OrderStatus.  I don't know what I'm doing in VS and I don't want to mess anything up that's already working.

It sounds like changing the name of an existing one will work, and thanks for letting me know I can change that in Languages > Locale resources.  That was much easier and I think I can live with 4 stages of OrderStatus for now.
7 years ago
Hi
5 years ago
[quote]

Please go to following file, It contains OrderStatus Enum.

..\Libraries\Nop.Core\Domain\Orders\OrderStatus.cs

  
/// <summary>
    /// Represents an order status enumeration
    /// </summary>
    public enum OrderStatus : int
    {
        /// <summary>
        /// Pending
        /// </summary>
        Pending = 10,
        /// <summary>
        /// Processing
        /// </summary>
        Processing = 20,
        /// <summary>
        /// Complete
        /// </summary>
        Complete = 30,
        /// <summary>
        /// Cancelled
        /// </summary>
        Cancelled = 40
    }
}


You can add your status here, note that numeric/integer value here will be stored in database and on site you will see status you've set against it here in ENUM file.

Hope this helps you in setting up your own Order status.

The same we can set payment status ans shipping status also.[/quote]

I successfully added the extra order status.
I also want to know how to add a color button to it?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.