<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" class="no-js"> <!--<![endif]--><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblCart} : {$commonMetaTitle}</title>
<meta name="Description" content="{$commonMetaDescription}" />
<meta name="viewport" content="width=device-width">
<meta name="Keywords" content="{$commonMetaKeywords}" />
{include file='CommonStyles.tpl' caching=true cache_lifetime=7200}

<link rel="stylesheet" href="{$view_styles}/cart.css" />
<link rel="stylesheet" href="{$view_styles}/checkout.css" />
{assign var="checkoutpage" value="Yes"}

{include file='CommonJavaScript.tpl'}
<script type="text/javascript" src="{$common_js}/jquery-ui-1.10.2.custom.min.js"></script>
<script type="text/javascript" src="{$common_frontend_js}/tab.plugin.js"></script>
<script type="text/javascript">
	var msgConfirmDelete="{$language.msgConfirmDelete}";
	var msgConfirmRemoveGift = 'Are you sure want to remove this gift ?';
    var okText	=	"{$language.lblOK}";
	var AlertText= "{$language.lblAlert}";
	var cancelText = "{$language.lblCancel}";
	var defaultCoupanCode = "{$language.lblPromoCode}";	
	var lblerrRequired = "{$language.errRequired}";	
	var lblerrInvalidEmail = "{$language.errInvalidEmail}";	
	var selecttext = "{$language.lblselecttext}";
        var selecttextnew = "{$language.lblSelect}";
	var lblHtmltags	= "{$language.lblHtmltags}";	
	var lblLogedAsGuest	= "{$language.lblLogedAsGuest}";	
        var showShipping	= "{$showShipping}";
        var selCountryID        = "{$selCountryID}";
</script>
</head>
<body ng-controller="SearchCtrl">
<!-- Begin : Outer Pane -->
<div id="main" class="page_checkout"> <span class="overlay_checkout" style="display:none;"></span>
  <!-- Begin : Header Pane--> 
  {include file='cart/CheckoutCommonTop.tpl'} 
  <!-- End : Header --> 
  
  <!-- Begin : Content Pane -->
  <div id="content-wrapper" ng-if="!query">
    <div class="container CheckoutPane processCheckout clearfix">
      <div id="common_message"></div>
      <div id="message_cart"></div>
      <div id="promo_message"></div>
      {if $cartData['error']|count|default:0 >0}
      <div  class="message_error default_message_error"> <span class="notifyClose defaultError">x</span>
        <ul class="table-listing">
          {foreach from=$cartData['error'] item="errorItem"}
          <li>{$errorItem}</li>
          {/foreach}
        </ul> 
      </div>
      {/if}
        <div class="leftSide_innerpull-left margin-vertical"> 
          {assign var="showCheckoutLogged" value="0"}
          <!--<div class="clearfix">--> 
          {if ! $commonUserID|default:0 && $showShipping eq 0}
            <div class="clearfix checkout-block light-bg">
          <div class="checkout_login billingfields" > 
            <!-- Begin  : Login --> 
            {include file='cart/onestep/CheckoutLogin.tpl'} 
            <!-- End  : Login --> 
          </div>
                </div>
      {else}
          {assign var="showCheckoutLogged" value="1"}
        {include file='cart/onestep/CheckoutOnePage.tpl'}
      {/if}
          </div>
          <div class="inner-left ordersummarydiv">
            <div class="clearfix checkout_block light-bg padding">
            {include file='cart/onestep/CheckoutLeftBlock.tpl'}
            </div>
          </div> 
            {if $showCheckoutLogged >0}
                 <div class="margin-top">
                  <div class="checkout_right light-bg checkout-block">
                    <div class="gutter checkout-payment white">
                      <div class="checkout_payment">
                        <!-- Begin 	: Payment -->

                        {include file='cart/onestep/CheckoutPayment.tpl'}

                      </div>
                      <!-- End 	: Payment -->
                    </div>
                  </div>
                </div>
            {/if}
      </div>
    </div>
    <!-- End : Content Pane --> 
  </div>
  <!-- Begin : Footer	Pane --> 
  {include file='CommonBottom.tpl' caching=true cache_lifetime=7200} 
  <!-- End : Footer Pane --> 
</div>
<script type="text/javascript">
var cartShipAdrs = '{$cartShippingAddress|default:''}';
var userAddressList = {$userAddressList|@json_encode};
var orderProductType = '{$cartData.productType}';
</script> 
<script type="text/javascript">
$(document).ready(function(){
	$('#hideBill').click(function(){
	$('.billingContent').show();
	$('.orderSum').hide() 
	});
		});
    $('.google-plus').click(function() {
    window.open(GLOBAL_BASE_PATH + '/gplus.php', '', 'width=800,height=650,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0');
        });
</script> 
<script type="text/javascript" src="{$common_frontend_js}/onestepcheckout.page.js"></script>
{html->messages_script section="User" id="message_cart"}
{html->messages_script section="Index" id="common_message_fromIndex"}
{html->messages_script id="common_message"}
{include file='CommonJavaScriptBottom.tpl' caching=true cache_lifetime=7200}
</body>
</html>