Subversion Repositories SmartDukaan

Rev

Rev 4453 | Rev 4836 | Go to most recent revision | 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">
#set($ab_testing_variable = $action.getVariationId())
<head>
#if($ab_testing_variable == 0)
<script>
        <!-- Google Website Optimizer Control Script -->
function utmx_section(){}function utmx(){}
(function(){var k='${in.shop2020.ABTestExperimentID}',d=document,l=d.location,c=d.cookie;function f(n){
if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return escape(c.substring(i+n.
length+1,j<0?c.length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;
d.write('<sc'+'ript src="'+
'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com'
+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='
+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
'" type="text/javascript" charset="utf-8"></sc'+'ript>')})();
</script><script>utmx("url",'A/B');</script>
<!-- End of Google Website Optimizer Control Script -->
<!-- Google Website Optimizer Tracking Script -->
<script type="text/javascript">
  var _gaq = _gaq || [];
  
  _gaq.push(['gwo._setAccount', '${in.shop2020.ABTestgaAccountID}']);
  _gaq.push(['gwo._trackPageview', '/${in.shop2020.ABTestExperimentID}/test']);
  
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<!-- End of Google Website Optimizer Tracking Script -->
#else
        <!-- Google Website Optimizer Tracking Script -->
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['gwo._setAccount', '${in.shop2020.ABTestgaAccountID}']);
  _gaq.push(['gwo._trackPageview', '/${in.shop2020.ABTestExperimentID}/test']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<!-- End of Google Website Optimizer Tracking Script -->

#end
        <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>Saholic</title>
#include ( "templates/commoncssfiles.vm" )
</head>
<body>
        <noscript>
                <p id="noScript">Please allow <em>Javascript</em> in order to function this website 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">
                        <div id="shippingEstimateCalculator" class="left">
                                <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)
                                        #if($item.get("SHIPPING_TIME") == -1)
                                                #set($messageShippingTime = "Location not serviceable")
                                        #else
                                                #set($messageShippingTime = "FREE Delivery in <span id=days_" + $item.get("ITEM_ID") + ">" + $item.get("SHIPPING_TIME") + "</span> Bus. Days")
                                        #end
                                        <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><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>
                                #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
                                        </form>
                                        <table class="net-amount right" cellspacing="0">
                                                <tr>
                                                        <td class="label">SHIPPING:</td>
                                                        <td class="orange">FREE</td>
                                                </tr>
                                #if($couponcode != "")
                                        #set($cssClass = "")
                                #else
                                        #set($cssClass = "payable")
                                #end
                                                <tr class="total-amount $cssClass">
                                                        <td class="label">Total Amount:</td>
                                                        <td><img src="/images/rupee-symbol.png" alt="Rs." /> $totalamount</td>
                                                </tr>
                                #if($couponcode != "")
                                                <tr class="discounted-amount payable">
                                                        <td class="label">Amount Payable:<br />(After Discount)</td>
                                                        <td><img src="/images/rupee-symbol.png" alt="Rs." /> $discountedAmount</td>
                                                </tr>
                                #end
                                        </table>
                </div>
                        #if($action.isUserLoggedIn() || $ab_testing_variable == 0)
                                #set($actionButtonId = "checkout")
                        #elseif($ab_testing_variable == 1)
                                #set($actionButtonId = "poplogin")
                        #end
                        <div id="$actionButtonId" class="cartflow-main-action-button right checkout-button-below">ENTER SHIPPING INFO &gt;</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" )
</body>
</html>