<isloop items="${Order.completeOrderSummaryDetail.keySet().iterator()}" var="productLineItem" status="pliloopstate"> <isset name="pli" value="${Order.completeOrderSummaryDetail.get(productLineItem)}" scope="page"/> <isif condition="${pli.SecondItemNumber == 'FREIGHT'}"> <isset name="freightAmount" value="${freightAmount + pli.ExtendedPrice}" scope="page"/> </isif> <isif condition="${pli.SecondItemNumber == 'MONOGRAM'}"> <isset name="monogramAmount" value="${monogramAmount + pli.ExtendedPrice}" scope="page"/> </isif> <isif condition="${pli.SecondItemNumber == 'GIFT PACKAGING'}"> <isset name="giftPackagingAmount" value="${giftPackagingAmount + pli.ExtendedPrice}" scope="page"/> </isif> <isif condition="${pli.LineStatus == 'SHIPPED'}"> <isset name="shippedLines" value="${true}" scope="page"/> </isif> </isloop>