Status Codes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 лет назад
From looking at the database I've been able to determine values for various codes, but I have not been able to understand how they are assigned in the code.  For example, the following Order Status codes can be seen in the Order table.

OrderStatus.Pending    10
OrderStatus.Processing  20
OrderStatus.Complete  30
OrderStatus.Cancelled  40

Can anyone point me to where these values are assigned?
12 лет назад
It's just an enum with set integer values. Have a look at \Libraries\Nop.Core\Domain\Orders\OrderStatus.cs file.
And Order entity has two properties:
1. int OrderStatusId (persisted in database)
2. OrderStatus OrderStatus (not persisted in database, but actually refers to the first property - OrderStatusId)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.