KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: ady1981 on June 20, 2010, 10:39:11 am

Title: What is `Order #' in Admin App?
Post by: ady1981 on June 20, 2010, 10:39:11 am
Hello,

How could I figure out what is `Order #' in Admin App?

In the order list I can see the info like this:

Order # : 1277026213617
   
Customer Name : ...
   
Order Total: ...
   
Date Purchased: 20/06/2010
   
Status: ...

But the `Order #' is 28 indeed (as I could see via `Edit' button).


Regards,

-Andrey
Title: Re: What is `Order #' in Admin App?
Post by: trevor on June 20, 2010, 11:26:34 am
The order number can be used to contain an identifier that you may want to give to the order (i.e. 2010/18763-a) . It can be set using custom code in the OrderIntegrationMgr. http://www.konakart.com/docs/OrderStatusChangeActions.html
Title: Re: What is `Order #' in Admin App?
Post by: ady1981 on August 08, 2010, 12:29:06 pm
Quote from: trevor on June 20, 2010, 11:26:34 am
The order number can be used to contain an identifier that you may want to give to the order (i.e. 2010/18763-a) . It can be set using custom code in the OrderIntegrationMgr. http://www.konakart.com/docs/OrderStatusChangeActions.html

Thank You for the answer. It looks like that order number can be used for such purposes.

So, as I understand, we need to rewrite the createOrderNumber method:

    public String createOrderNumber(OrderIf order) throws Exception
    {
        // Example implementation
        return Long.toString(System.currentTimeMillis());
    }

But when the method is called order.getOrderNumber() is not settled yet.

It looks like there is another solution: is it possible to display the sequential order number in KonaKart Admin app?