Page 1 of 1

Order Cancel and status

Posted: Thu Jan 17, 2013 2:23 am
by bhavani
Hi,

is it possible to cancel the Order in the admin side?? and also i want to know , how to add status to the orders like pending, processing,confirmed etc.,

Thanks in advance!!!

Re: Order Cancel and status

Posted: Thu Jan 17, 2013 1:24 pm
by denis
Hi,

To cancel an order from the admin, you have to enable the remove button and implement what you want (for instance, setting the order status to "cancelled" ans save the order).

To add you own status you have to extends the OrderStatus class :

Code: Select all

public class MyOrderStatus extends OrderStatus{
       private static final long serialVersionUID = 1L;
       public static final OrderStatus CANCELLED= new OrderStatus("CANCELLED", "Cancelled");
       public static final OrderStatus PENDING= new OrderStatus("PENDING", "Pending");
}


Hope it can help you