Sample Code To Get Order Details And Person ... - WCS : Learning
Maybe your like
Tuesday, 5 January 2016
Sample code to get Order details and person details using the Get data tag
<wcf:getData type="com.ibm.commerce.order.facade.datatypes.OrderType" var="orderForCustom" expressionBuilder="findCurrentShoppingCart"> <wcf:param name="accessProfile" value="IBM_Details" /> </wcf:getData> *********************************************************************<br/>OrderId : ${orderForCustom.orderIdentifier.uniqueID} <br/>Order Status : ${orderForCustom.orderStatus.status} <br/>Total Amount: ${orderForCustom.orderAmount.grandTotal.value} <br/>Currency : ${orderForCustom.orderAmount.grandTotal.currency} <br/>Adjustment : ${orderForCustom.orderAmount.totalAdjustment.value} <br/>Shiiping : ${orderForCustom.orderAmount.totalShippingCharge.value} <br/>Tax: ${orderForCustom.orderAmount.totalSalesTax.value + orderForCustom.orderAmount.totalShippingTax.value} <br/>**********************************************************************<br/>Order Items: <br/><c:forEach items="${orderForCustom.orderItem}" var="item">===============================================================<br/> <wcf:getData type="com.ibm.commerce.catalog.facade.datatypes.CatalogNavigationViewType" var="catalogNavigationViewCustom" expressionBuilder="getCatalogEntryViewAllByID" varShowVerb="showCatalogNavigationView" maxItems="1" recordSetStartNumber="0"> <wcf:param name="UniqueID" value="${item.catalogEntryIdentifier.uniqueID}"/> <wcf:contextData name="storeId" data="${storeId}" /> <wcf:contextData name="catalogId" data="${catalogId}" /> </wcf:getData> Name : ${catalogNavigationViewCustom.catalogEntryView} <br/> Quantity : ${item.quantity.value}<br> Amount : ${item.orderItemAmount.orderItemPrice.value} ${item.orderItemAmount.orderItemPrice.currency} <br/>================================================================ <br/></c:forEach> <wcf:getData type="com.ibm.commerce.member.facade.datatypes.PersonType" var="person" expressionBuilder="findCurrentPerson"> <wcf:param name="accessProfile" value="IBM_All" /> </wcf:getData> <c:set var="firstName" value="${person.contactInfo.contactName.firstName}"/> <c:set var="lastName" value="${person.contactInfo.contactName.lastName}"/> <c:set var="middleName" value="${person.contactInfo.contactName.middleName}"/> <c:set var="street" value="${person.contactInfo.address.addressLine[0]}"/> <c:set var="street2" value="${person.contactInfo.address.addressLine[1]}"/> <c:set var="city" value="${person.contactInfo.address.city}"/> <c:set var="email1" value="${person.contactInfo.emailAddress1.value}"/> <!-- FirstName : ${firstName} Last Name : ${lastName} Middle Name : ${middleName} Street : ${street} Street2 : ${street2} City : ${city} email : ${email1} --> Older Post Home Blog Archive |
Tag » Com.ibm.commerce.order.facade.datatypes.ordertype
-
OrderType
-
Package Com.merce.order.facade.datatypes
-
Tag: ContextData
-
Tag: Param
-
Wcs76fp5/get-data-config.xml At Master - GitHub
-
WebSphere® Commerce - Version 7, Feature Pack 5 Or - IBM
-
How To Extend An SOI Service With UserData - WCS Tips
-
Pass An Extra Parameter To Store Custom Data While Add To ... - WCS
-
Sans Titre
-
How To Call Facade From The Command - Stack Overflow
-
Wcf:getData Tag Demystified | Marco Fabbri's Blog
-
Building Multichannel Applications With WebSphere Commerce ...