Cashier portlet JSP sample


+

Search Tips   |   Advanced Search

 

The Cashier portlet is displayed when customers click on the checkout icon in the My Cart portlet.

In this portlet, a customer can do the following tasks:

When this portlet appears the first time the following jsp is used...

MVCPortlet_installdir/jsp/html/default/Cashier.jsp

image goes here


Customer updates order information

The Cashier portlet...

MVCPortlet_installdir/jsp/html/order/OrderCheckoutDisplay.jsp

...refreshes and displays updated information.

findCurrentShoppingCart Returns detailed information of an order in pending state, such as quantity and prices under each order item of the shopping cart.
findByOrderId under WC_UsableShippingInfoProfile Returns available shipping information that can be used with the current shopping cart.
findByOrderId under WC_UsablePaymentInfoProfile Returns available payment methods that can be used with the current shopping cart.
getCatalogEntrySummaryByID Shows more product information under each order item.
updateOrderItem (OrderCheckoutDisplay) Updates the shipping address and shipping method for an item in a shopping cart. The OrderCheckoutDisplay JSP file uses updateOrderItem to refresh the Order Checkout page, and show new shipping charges based on the new shipping method.
updateOrderShippingInfo (OrderCheckout) Updates shipping information such as shipping address and shipping methods.
prepareOrder (OrderCheckout) Prepares the shopping cart for adding payment information and submission.
submitOrder (OrderCheckout) Submits an order when all information in an order is defined and updated (prices, shipping information and payment information).


Customer clicks Order Now

The Order Confirmation page appears...

MVCPortlet_installdir/jsp/html/order/OrderConfirmation.jsp

findByOrderId under WC_OrderDetailsProfile Gets detailed information of a submitted order.
getCatalogEntrySummaryByID Shows more information on a product under each order item.


Related concepts

WebSphere Commerce integration with WebSphere Portal
Portlet packaging structure


Related tasks

Configure WebSphere Portal with WebSphere Commerce
Configure the sample portlets in the development environment


Related reference

WebSphere Commerce portlet samples - - -