Page 1 of 2
Order Management in Admin
Posted: Tue Jan 24, 2012 10:24 pm
by peter
Does the demo app implement full order life cycle management, including setting the order status to Shipped / Fulfilled / Complete, or something to that effect? I am not able to modify Order Status in the Admin interface under Customer Care -> Order. I am logged in as admin, which has all permissions. Thanks.
Re: Order Management in Admin
Posted: Mon Jan 30, 2012 3:21 pm
by jefffischer
Several things - we don't actually have a full OMS system built into the Broadleaf admin, but we do currently offer the ability to edit aspects of an order. Out-of-the-box, the admin is configured to allow read-only access to the order. This is why you are unable to edit any of the aspects of the order. We did this because we fully expect that each implementation will have customized OMS needs and will likely need to add additional buttons and functions to the interface (e.g. a custom return button for returning and refunding and item in an order). We won't know the backend requirements for each individual case ahead of time, so we've left it open ended and have left the interaction read-only by default.
It is easy enough to enable editing of the order by engaging in a simple Broadleaf Commerce admin customization. The ecommerce archetype provides a good example of an admin customization in general, so that would be a good place to start if you haven't worked on customizing the admin already. The archetype demonstrates customizing the product view in the admin. In your case, you would like to customize the order view (specifically the order presenter). Here are some general steps:
1) Create your own presenter implementation that extends OrderPresenter
2) Override bind(), make sure to call super.bind() and setReadOnly(false)
3) Create your own module implementation that extends CustomerCareModule
4) Override onModuleLoad(), make sure to call super.onModuleLoad() and register your presenter with the proper key name: org.broadleafcommerce.admin.client.presenter.order.OrderPresenter (refer to MyCompanyAdminModule in the archetype for a more specific code example)
That should be enough to allow you to edit a basic field on the order, like status. There are other SubPresentable instances in the OrderPresenter that have also been set to readOnly true that you would need to set to false if you want to edit things like order items, fulfillment groups, etc...
Of course, if this is your first admin customization, then there are a few other key files that are required to register your module extension. Again, the archetype is a good example of how this is done. I'm also attaching some preliminary documentation that we've written regarding the admin, its key components and basic customizations.
Re: Order Management in Admin
Posted: Tue Aug 28, 2012 2:08 pm
by peter
Has BLC 2.0 added any features related to order fulfillment, specifically transitioning order status in Admin to Complete (or similar).
I tried testing this out myself by using a virtual demo site on your website, but I couldn't get past the payment details page during checkout. Sure would be nice if we could actually place some orders, making it easier to explore the Admin.
Re: Order Management in Admin
Posted: Thu Aug 30, 2012 10:39 am
by aazzolini
Generally speaking, Broadleaf is not an order management system, and we do not have any out-of-box functionality for handling orders once they are placed.
However, you could certainly add whatever customization you needed, such as allowing Order Status to be changed.
What's the issue you're running into on checkout? I can complete an order on a virtual demo with no problems - are you filling out all fields on the checkout form?
Re: Order Management in Admin
Posted: Thu Aug 30, 2012 11:01 am
by phillipuniverse
To add to this, we realize this is a pain point for some people but one of our upcoming roadmap items is implementing return features. When these features start to take shape, we'll also be opening up more OMS features in the admin in general.
Of course, you can always extend the admin to open it up however you like and change anything about the Order.
Re: Order Management in Admin
Posted: Thu Aug 30, 2012 1:01 pm
by peter
Fair enough. After all, BLC is a framework.
I was not able to get past the credit card capture form on the virtual demo site. It was failing validation, and I did not want to input real credit card number.
Peter
Re: Order Management in Admin
Posted: Thu Aug 30, 2012 1:12 pm
by aazzolini
Put in a valid expiration date and a name and it should work
Re: Order Management in Admin
Posted: Thu Aug 30, 2012 2:13 pm
by phillipuniverse
On the demo site, the credit card number goes through a simple Luhn check to determine if it's a valid credit card. 4111111111111111 ('4' with 16 '1's after it) should pass the validation. Alternatively, there are sites that will
generate them for you.
Re: Order Management in Admin
Posted: Mon Sep 24, 2012 8:04 pm
by jfridye
phillipuniverse wrote:On the demo site, the credit card number goes through a simple Luhn check to determine if it's a valid credit card. 4111111111111111 ('4' with 16 '1's after it) should pass the validation. Alternatively, there are sites that will
generate them for you.
Not 16 '1's after the '4' , but 15. The total number of digits in the credit card number should be 16.
Re: Order Management in Admin
Posted: Sat Apr 05, 2014 9:57 am
by saulius
jefffischer wrote:1) Create your own presenter implementation that extends OrderPresenter
2) Override bind(), make sure to call super.bind() and setReadOnly(false)
3) Create your own module implementation that extends CustomerCareModule
4) Override onModuleLoad(), make sure to call super.onModuleLoad() and register your presenter with the proper key name: org.broadleafcommerce.admin.client.presenter.order.OrderPresenter (refer to MyCompanyAdminModule in the archetype for a more specific code example)
Hello, in current version 3.1 there are no files OrderPresenter and CustomerCareModule. Any ideas how can I achieve order management updates in BLC 3.1 version?