 <div class="cart-container">
      <div class="clearfix">
          <div  id="message_cart"></div>
          <div id="common_message pl-0"></div>
            <div id="promo_message"></div>
            {*{if $cartData['error']|count >0}
            <div  class="message_error default_message_error">
              <span class="notifyClose defaultError"></span>
              <ul class="table-listing">
                {foreach from=$cartData['error'] item="errorItem"}
                <li>{$errorItem}</li>
                {/foreach}
              </ul>
            </div>
              {else}
            {if $cartData['errorFreeGift']|count >0 && $submitProceed|default:'' neq ''}
            <div class="message_error default_message_error">

              <span class="notifyClose defaultError"></span>
              <ul class="table-listing">
                {foreach from=$cartData['errorFreeGift'] item="errorItem"}
                <li>{$errorItem}</li>
                {/foreach}
              </ul>
            </div>
              
            {/if}
            {/if}*}
        {if $cartData['items']|count >0}
        {form->start name	= "formCart" 
         error_class	= "message_inline_validation" 
         action			= "" 
         method			= "post" 
         enctype		= "multipart/form-data"
         onsubmit       ="return handleSubmit();"}
         {form->fieldGroup 	fieldName		= "friendName" 
                group			= "cartGiveAsGift" 
                parentGroup		= "" 
                validate		= "required"
                error			= $language.errRequired}

        {form->fieldGroup 	fieldName		= "friendEmail" 
                group			= "cartGiveAsGift" 
                parentGroup		= "" 
                validate		= "required~*email"
                error			= $language.errRequired|cat:"~*"|cat:$language.errInvalidEmail}
        {form->hidden name="complete1"}        
        <div id="cart_section"> 
          <!-- Begin : First Row -->
          <div class="clearfix item-cart" id="cart_ajax_section"> 
            {include file='cart/CartItems.tpl'} 
          </div>
          <!-- End : First Row --> 
          <!-- Begin : Charity and promo --> 
          <!-- Begin : Second Row --> 
          <div id="charity_promo_ajax_section" class="clearfix"> 
            {include file='cart/CartCharityPromoBlock.tpl'}
          </div> 
        </div>
          <div class="btn-div clearfix margin-top col-lg-6 col-12 p-0 float-right">
          {form->hidden name="redirectUrl" value="cart/checkout"}

        {if $isCartpopup|default:''}
        {form->submit name="complete" id="cartRedirectCheckout"  class="btn btn-primary float-right checkout proceedBtn" value="{$language.lblPlaceOrder}"}
        {form->submit  name="completeLoader" style="display:none" tabindex="3"
        disabled="disabled"  id="completeLoader" class="btn btn-primary float-right buttonDisable "
        value="{$language.lblCartPleaseWait}"} 				
            {html->anchor  onclick="parent.$.fancybox.close();parent.location.href='{$popup_iframe_url}/'" class="btn btn-default float-right margin-right border mr-2" caption="{$language.lblContinueShopping}"}	
            {else}
        {form->submit name="complete" id="complete"  class="btn btn-primary float-right checkout  proceedBtn"
        value="{$language.lblPlaceOrder}"}
        {form->submit  name="completeLoader" style="display:none" tabindex="3"
        disabled="disabled"  id="completeLoader" class="btn btn-primary float-right buttonDisable "
        value="{$language.lblCartPleaseWait}"} 				
        {html->anchor href="/" class="btn btn-default float-right border mr-2" caption="{$language.lblContinueShopping}"}	

        {/if}

        {form->close}   
        </div>
          </div> 
        {else} 
            <div class="clearfix puchase-exceed" id="AjaxNoItems" style="display:block;">
              <div class="text-center empty-cart"> 
                {* <!-- Begin : Content Pane -->  *}
                <img src="{$view_images}/cart-empty.png" alt="Empty cart" class="img-fluid">
                <h4>{$language.lblSorry} {$language.msgNoItemsCart}</h4>
                <div class="mt-3">

                  {html->anchor href="/index/" caption="{$language.lblGoToHome}" class="btn btn-primary"} 
                </div>
                {* <!-- End : Content Pane --> *}
              </div>
            </div>
        {* <!-- End : Cart Block -->
        <div class="puchase-exceed round-curve5" id="AjaxNoItems" style="display:block;"> 
          <!-- Begin : Content Pane --> 
          <span>{$language.lblSorry}</span>
          {$language.msgNoItemsCart}
          {html->anchor href="/index/" caption="{$language.lblGoToHome}"} 
          <!-- End : Content Pane -->
        </div>
        <!--End:No Product Section--> 
        <!--end--> *}
        {/if} 
</div>