The order confirmation page, checkout/confirmation.jsp
displays the entire order, including the shipping and payment information and a final total. The user can:
place the order at that time
cancel the order
schedule the order to be placed at some time in the future
When a user submits the order on confirmation screen, we check to see if there are any approval conditions for the order. If the order requires approval, we place the order in an approval pending state. For more information on approvals, please refer to My Account chapter.
If the order does not require approval, it is submitted for processing.
The confirmation page, checkout/confirmation.jsp
, relies on the CommitOrderFormHandler
and CancelOrderFormHandler
respectively to place or cancel the order:
<dsp:input bean="CommitOrderFormHandler.commitOrder" type="submit" value="Place order now"/> <dsp:input bean="CommitOrderFormHandler.commitOrderSuccessURL" type="hidden" value="../checkout/thank_you.jsp"/> <dsp:input bean="CommitOrderFormHandler.commitOrderErrorURL" type="hidden" value="../checkout/confirmation.jsp"/> <dsp:input bean="CancelOrderFormHandler.cancelOrder" type="submit" value="Cancel order"/> <dsp:input bean="CancelOrderFormHandler.orderIdToCancel" beanvalue= "ShoppingCart.current.id" type="hidden"/>
For information on scheduled orders, see the Scheduled Orders section in the My Account chapter.
The order commit page summarizes the order, assigns it an ID and thanks the user.