Page 1 of 1

Is FulfillmentGroup required for an Order?

Posted: Tue Jun 05, 2012 3:14 am
by pokemon007
It looks like an order requires at least one fulfillment group from following code in CheckoutController's processCheckout:
List<FulfillmentGroup> groups = order.getFulfillmentGroups();
if(groups.size() < 1){
return "redirect:/basket/currentCart.htm";
}

What if the order contains no shippable item?

Another question is the totaling logic. In an example I tried, an order with a single fulfillment, the fulfillment total is different than the total charged to customer. The difference is due to 0 tax on fulfillment. Can you explain it?

Thank you!

Re: Is FulfillmentGroup required for an Order?

Posted: Fri Jun 15, 2012 4:32 pm
by jefffischer
The controller you're looking at is meant to be used as an example. As such, the example assumes shippable items. If your case differs, you can override this controller, or fashion your own, such that the fulfillment group requirement is not enforced. Also, you'll want to override the checkout workflow configuration in your application context to not include a shipping activity.

I would need to know more about the version of the software you're running and the context (archetype, demo, etc...) to be able to effectively answer your second question.

Re: Is FulfillmentGroup required for an Order?

Posted: Sat Jun 16, 2012 2:04 am
by pokemon007
I'm still running 1.5M4 demo. I did some change on the checkout workflow customization mainly on pricing and tax calculation.

Thanks.