#set($session = $request.getSession()) #set($shoppingCart = $session.getAttribute("shoppingCart")) #if ($shoppingCart) #set($holders = $shoppingCart.holders) #set($checkOut = $holders.size()) #end #if ($shoppingCart) #set($discountCodes = $shoppingCart.discountCodes) #end #set($subTotal = 0) #foreach($holder in ${holders}) #set($format = $holder.format) #set($product = $format.product) #end #set($totalFinal = $math.max($subTotal,0))
Item Description Qty Price    Action
 
$product.title
$format.formatName
#if($webapi.isPartner() == true) #set($priceAmount = ${format.getQuantityPrice($holder.quantity,$discountCodes).partnerPriceWithDiscount}) #else #set($priceAmount = ${format.getQuantityPrice($holder.quantity,$discountCodes).retailPriceWithDiscount}) #end #set($lineTotal = $math.mul($priceAmount,$holder.quantity)) #set($subTotal = $math.add($subTotal,$lineTotal)) $ $!webapi.toPriceFormat($priceAmount)    remove
 
Total: $ $!webapi.toPriceFormat($totalFinal)     
 
Do you have a coupon? If so, enter the code here
 
#foreach($discountCode in ${discountCodes}) #if($discountCode.discountType == 1) #set($precurrency = '') #set($postcurrency = '%') #set($discountAmount = $UtilMethods.toPercentageFormat($discountCode.discountAmount)) #else #set($precurrency = '$') #set($postcurrency = '') #set($discountAmount = $UtilMethods.toPriceFormat($discountCode.discountAmount)) #end #end
Code ID Description Amount Action
$discountCode.codeId $discountCode.codeDescription$precurrency $discountAmount $postcurrency remove
 
#if($checkOut && $checkOut > 0) #end