Subversion Repositories SmartDukaan

Rev

Rev 11939 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <!-- Prevent MS Office toolbar from changing layout -->
        <meta http-equiv="imagetoolbar" content="false" />
        <meta name="MSSmartTagsPreventParsing" content="true" />
        <title>${in.shop2020.title}</title>
#include ( "templates/commoncssfiles.vm" )
        <script language="javascript" type="text/javascript" src="/js/ga-invoker.js"></script>
</head>
<body>
        <noscript>
                <p id="noScript">Please enable <em>Javascript</em> for this Website to function correctly!</p>
        </noscript>

        $action.getHeaderSnippet()
        
<div id="main">
        <div class="main-content">
                <div id="cartFlowHeader">
                        <div class="left cartflow-header-tab lefttab-active active-tab-font">
                                <span class="counter-active">1</span>
                                <span class="label">Cart Details</span>
                        </div>
                        <div class="left cartflow-header-tab midtab-inactive left-overlap inactive-tab-font">
                                <span class="counter-inactive">2</span>
                                <span class="label">Shipping Info.</span>
                        </div>
                        <div class="left cartflow-header-tab midtab-inactive left-overlap inactive-tab-font">
                                <span class="counter-inactive">3</span>
                                <span class="label">Make Payment</span>
                        </div>
                        <div class="left cartflow-header-tab righttab-inactive left-overlap inactive-tab-font">
                                <span class="counter-inactive">4</span>
                                <span class="label">Order Status</span>
                        </div>
                </div>
                
                <!-- Cart Details -->
        #set($items = $action.getCartItems())
        
        #if($items)
                #set($totalamount = $action.getTotalAmount())
                #set($pincode = $action.getPinCode())
                #set($couponcode = $action.getCouponCode())
                #set($discountedAmount = $action.getDiscountedAmount())
                #set($errorMsg  = $action.getErrorMsg())
                
                <div id="cart" class="blue-border">
                        #if($errorMsg)
                        <div style="color: red;margin-bottom: 10px;">$errorMsg</div>
                        #end
                        <div id="insuranceMessage" style="">
                        </div>
                        <div id="shippingEstimateCalculator" class="left" style='margin-bottom:7px;'>
                                <span class="label left">Enter your Area PIN:&nbsp;</span>
                                <input type="text" id="zipcode" class="searchbox" value="$pincode" maxlength="6" />
                                <button id="computeEstimate" class="new-button">
                                        <img src="/images/Icon_DeliveryTime.png" />
                                        <span>Update Delivery Time</span>
                </button>
            </div>
                        <table id="cartDetail" cellpadding="0" cellspacing="0" class="left">
                                <thead>
                                        <tr>
                                                <th width="242" class="first">Item &amp; Color</th>
                                                <th width="239"><img src="/images/Icon_DeliveryTime.png" />&nbsp;&nbsp;Delivery Time for PIN <span class="dev-pincode">$pincode</span></th>
                                                <th width="140">Unit Price</th>
                                                <th width="110">Quantity</th>
                                                <th width="140">Total Price</th>
                                                <th width="50">&nbsp;</th>
                    </tr>
                </thead>
                                <tbody>
                                #foreach($item in $items)
                                        #set($messageShippingTime = "<div id=serv_" + $item.get("ITEM_ID")+ ">Location is not serviceable</div>
                                                                                                 <div id=block_" + $item.get("ITEM_ID")+ "> FREE Delivery by 
                                                                                                        <span id=days_" + $item.get("ITEM_ID") + ">" + $item.get("SHIPPING_TIME") + "</span>
                                                                                                        <span id=coddays_" + $item.get("ITEM_ID") + " style='display:none' ></span>  
                                                                                                        <span id=show_cod_" + $item.get("ITEM_ID") + " style='display:none' ><a href='javascript:displayCod(" + $item.get("ITEM_ID") + ")' style='padding-left:2px'><img src='/images/quesmark.png' style='vertical-align: middle;'></a></span>                         
                                                                                                        <br>
                                                                                                        <span id=otg_" + $item.get("ITEM_ID") + " style='display:none'>
                                                                                                                On Time Guarantee 
                                                                                                                <br>
                                                                                                                <span class=red>We Pay if We Delay</span>
                                                                                                                <a style=padding-left:2px href=javascript:void(0) class='otg_know_more'>
                                                                                                                        <img style=vertical-align:middle src=/images/quesmark.png>
                                                                                                                </a>
                                                                                                        </span>
                                                                                                </div>
                                                                                                <div id=img_"+$item.get("ITEM_ID")+"></div>")
                                        <tr id="$item.get("ITEM_ID")">
                                                <td>
                                                        <div class="left">
                                                                <img alt="phone" src='/images/website/$item.get("CATALOG_ID")/thumbnail.jpg'>
                                                        </div>
                                                        <div class="cart-item-name-div">
                                <div class="cart-item-name">$item.get("ITEM_NAME")</div>
                                                                <span class="cart-item-color">$item.get("ITEM_COLOR")</span>
                                                #if($item.get("BEST_DEAL_TEXT"))
                                                                <div class="cart-item-best-deal-text">$item.get("BEST_DEAL_TEXT")</div>
                                                #end
                            </div>
                        </td>
                                                <td id="shipping_time_$item.get("ITEM_ID")">$messageShippingTime</td>
                                                <td><img src="/images/rupee-symbol.png" alt="Rs." /> $item.get("SELLING_PRICE")</td>
                                                <td style="line-height: 28px;">
                                                        <input id="quantity_$item.get("ITEM_ID")" type="text" class="cart-item-quantity searchbox" value=$item.get("ITEM_QUANTITY") />
                                                        &nbsp;&nbsp;pcs.
                                                </td>
                                                <td class='totalPrice'><img src="/images/rupee-symbol.png" alt="Rs." /> $item.get("TOTAL_PRICE")</td>
                                                <td align="center">
                                                        <img id='remove_$item.get("ITEM_ID")' class="remove-quantitybttn" src="/images/Cross_DeleteRow_DEF.png" title="Remove item from the cart" />
                        </td>
                    </tr>
                                        #if(!($item.get("IS_INSURABLE").equals("0")))
                                        <tr>
                                                <td colspan="6" style="padding: 2px 0;">
                                                                #if($item.get("IS_INSURED").equals("true"))
                                                                                #set($checked = "checked")
                                                                                #set($toShow = '')
                                                                        #else
                                                                                #set($checked = "")
                                                                                #set($toShow = 'display:none')
                                                                        #end
                                                        <img style="float:left;padding-left:25px;" alt="phone" src="/images/insurance.jpg">
                                                                <div>
                                <div style="padding: 5px 0 5px 30px;float:left">
                                                                <input type="checkbox" $checked productid=$item.get("ITEM_ID") style='margin-right:4px;' class="wantInsurance" name="wantInsurance" id='wantInsurance_$item.get("ITEM_ID")'>I want to opt for 1 year WorldWide Theft Insurance for this product for <span style="font-size:11px" class="rupee-icon">$item.get("INSURANCE_AMOUNT")</span></input>
                                </div>
                                                        <div id='agreeInsuranceTncDiv_$item.get("ITEM_ID")' class='agreeInsuranceTncDiv' style='width:30%;float:right;padding-top:5px;$toShow'>
                                                                        
                                                                <input type="checkbox" insuranceAmount=$item.get("INSURANCE_AMOUNT") $checked style='margin-right:4px;' productid=$item.get("ITEM_ID") quantity=$item.get("ITEM_QUANTITY") class="agreeInsuranceTnc" name="agreeInsuranceTnc" id='agreeInsuranceTnc_$item.get("ITEM_ID")'>I agree to <a href='static/insurance-terms' target='_blank'>terms and conditions</a></input>
                                </div>
                                                                </div>
                                                        <div style="clear:left"></div>
                                                </td>
                                        </tr>
                                        #end
                                        #if(!($item.get("DATA_PROTECTION_INSURER").equals("0")))
                                                <tr>
                                                <td colspan="6" style="padding: 2px 0;">
                                                                #if($item.get("IS_DATA_PROTECTED").equals("true"))
                                                                                #set($checked = "checked")
                                                                        #else
                                                                                #set($checked = "")
                                                                        #end
                                                        <img style="float:left;padding-top:5px;padding-left:10px;" alt="one-assist" src="/images/oneassist.jpg">
                                <div style="padding: 5px 0 5px 85px;">
                                                                <input type="checkbox" $checked productid=$item.get("ITEM_ID") style='margin-right:4px;' productid=$item.get("ITEM_ID") quantity=$item.get("ITEM_QUANTITY") class="dataProtection" name="dataProtection" id='dataProtection_$item.get("ITEM_ID")'>I want 90 days SIM-blocking, Temporary Mobile Replacement & Data Backup plan worth <span style="font-size:11px" class="rupee-icon"><strike>$item.get("ONE_ASSIST_AMOUNT")</strike></span><span class="orange">&nbsp;Free</span></input>
                                                                        <a class="one_assist_know_more" href="javascript:void(0)" style="padding-left:2px">
                                                                                <img src="/images/quesmark.png" style="vertical-align: middle;">
                                                                        </a>
                                </div>
                                                        <div style="clear:left"></div>
                                                </td>
                                        </tr>
                                        #end
                                #end
                </tbody>
            </table>
            <div id="cartFooter">
                                <div class="top">
                                        <form id="frmCouponCode" class="left" action="/promotion" method="post">
                                                <span class="left">Have a Coupon Code? Enter here:</span>&nbsp;
                                                <input id="couponCode" class="searchbox" type="text" name="coupon_code" maxlength="20" value="$couponcode" />&nbsp;
                                                <input type="hidden" name="action" id="couponAction" /> &nbsp;
                                                <button id="applyCoupon" class="new-button">Apply</button>&nbsp;
                        #if($couponcode != "")
                                                <button id="removeCoupon" class="new-button">Remove</button>
                        #end
                        
                        #set($messages = $action.getActionErrors())
                                
                        #if($messages && $messages.size() != 0)
                                                <p id="messageError">
                                #foreach($message in $messages)
                                                        $message <br>
                                #end
                                        </p>
                        #end

                        #set($messages1 = $action.getActionMessages())
                                
                        #if($messages1 && $messages1.size() != 0)
                                                <p id="messageSuccess">
                                                #set($msg="")
                                #foreach($message in $messages1)
                                                        #set($msg=$message)
                                #end
                                                        $msg <br>
                                        </p>
                                #if($messages1.size() == 1)
                                        <script type="text/javascript">
                                                couponApplied = true;
                                                couponCode = '$couponcode';
                                                cartItemIds = "#foreach($item in $items)$item.get("ITEM_ID"),#end" 
                                        </script>
                                #end    
                        #end
                                        </form>
                                        <table class="net-amount right" cellspacing="0">
                                                <tr>
                                                        <td class="label">SHIPPING:</td>
                                                        <td class="orange">FREE</td>
                                                </tr>
                                #if($couponcode != "" && $discountedAmount != $totalamount)
                                        #set($cssClass = "")
                                #else
                                        #set($cssClass = "payable")
                                #end
                                                <tr class="total-amount $cssClass">
                                                        <td class="label">Total Amount:</td>
                                                        <td id='totalAmountColumn'><img src="/images/rupee-symbol.png" alt="Rs." /> $totalamount</td>
                                                </tr>
                                #if($couponcode != "" && $discountedAmount != $totalamount)
                                                <tr class="discounted-amount payable">
                                                        <td class="label">After Discount:</td>
                                                        <td id='discountedAmount'><img src="/images/rupee-symbol.png" alt="Rs." /> $discountedAmount</td>
                                                </tr>
                                #end
                                        </table>
                                        #if($action.isUserLoggedIn())
                                        #set($actionButtonId = "checkout")
                                #else
                                        #set($actionButtonId = "poplogin")
                                #end
                                        <div id="$actionButtonId" class="cartflow-main-action-button right checkout-button-below">ENTER SHIPPING INFO &gt;</div>
                </div>
                        </div>
        </div>
#else
        <div id="registration" class="blue-border">
                <div class="middle">
                        <div class="mid-inner">
                                <div id="emptyCart">
                                        <!-- empty cart -->
                                        <div id="emptyCart">
                                                <img src="/images/empty-cart.jpg" width="183" height="179" alt="" /><br />
                                                <p><strong>Your cart is currently empty!</strong> <span>Please add items to cart.</span></p>
                                                <a href="/home">Back to Home</a>
                                        </div>
                                        <!-- /empty cart -->
                                </div>
                        </div>
                </div>
        </div>
#end    
                <!-- /Cart Details -->
        </div>
</div>
#include("templates/footer.vm")
#include ( "templates/commonjsfiles.vm" )
#if($action.isPrivateDealUserBase())
<script type="text/javascript"> 
var dimensionValue = 'PrivateDeal';
ga('set', 'dimension1', dimensionValue);
</script>
#end
</body>
</html>