  <!-- tab Shippingstarts -->
<script type="text/javascript" src="{$view_javascript}/chosen.jquery.min.js"></script>
            <div class="tabpane float-button5" style="display:none">
            <div class="tabpane_inner">
              <span class="BreadCrump">
                <ul class="clearfix">
		   <li>{$language.lblProductDetails}&raquo; </li>
                  <li> <span> {$language.lblShippinginfo} </span></li>
                </ul>
                </span>
              <div class="form_listing">
	       
		  {form->start name="formShipSet" action="" changed="false"}
	      
                   <div class="info-head" ><h3 class="border-bottom">{$language.lblMenuShippingSettings}</h3></div>
                         
  <div class="form-group row"> 
      <label class="col-sm-4 col-md-3 ">{$language.lblShipping}</label>
      <div class="col-sm-7 col-md-6 col-lg-5">
			{if $shipping_origin_type=='admin'} {form->select id="isShipByMer" maxlength="50"  name="isShipByMer" value=$ShipSettingManage   options="admin->{$language.lblshipGlobal}~*biz->{$language.lblManageByMerchant}"  class="form-control"}
			
			{elseif $shipping_origin_type=='biz'}			
			{form->select id="isShipByMer" maxlength="50"  name="isShipByMer" value=$ShipSettingManage    options="biz->{$language.lblManageByMerchant}"  class="form-control"}{/if}
     </div> 
                  </div>
   <div class="form-group row">  
       <label class="col-sm-4 col-md-3" >{$language.lblShippingOrigin}</label><div class="col-sm-7 col-md-6 col-lg-5">
			{if $ShipSettingManage=='admin'}
    {form->select id="businessLocID" maxlength="50" validate="required" error=$language.errEnterShippingOrigin  name="businessLocID" value=$shipDetails.businessLocID    options=$resBusLoc  class="form-control" caption="->{$language.lblSelect}"}
     {elseif $ShipSettingManage=='biz'}
     {form->select id="businessLocID" maxlength="50" validate="required" error=$language.errEnterShippingOrigin  name="businessLocID" value=$shipDetails.businessLocID   options=$resBusLoc  class="form-control" caption="->{$language.lblSelect}"}
     {/if}   
   </div> </div>
   <div class="form-group row">
                	       <label class="col-sm-4 col-md-3 ">{$language.lblDeliveryTime}</label>
                           <div class="col-sm-7 col-md-6 col-lg-5">                    
			     {form->select class="form-control" id="productDispatchTime" name="productDispatchTime" options=$resPeriod caption="->{$language.lblSelectDeliveryTime}" }	 
                          </div>
                         </div>
     <div class="form-group row first"> 
                          <div class="col-sm-8 col-md-9 pull-right">			  
    {form->button id="submitShipSet" class="add btn btn-primary btn-sm" name="submitShipSet" value="{$language.lblSave}"}
			  </div>
                        </div>
     {form->close}
	
                  <div class="info-head" ><h3 class="border-bottom">{$language.lblShippingDetails}</h3> </div>
          <div class="clearfix">
            <a href="javascript:void(0)" class="linkbtnt01 btn btn-primary add-btn margin-bottom pull-right add-shipping">              <span class="icon-plus2"></span>{$language.lblAddShippingInfo}</a>
          </div>
	        <div id="ajaxShipListBlock">
		 {include file="AddedShippingBlock.tpl"}
                </div>
	       <div id="ajaxShipAddBlock" style="display:none">
                  {include file='AddProductShipBlock.tpl'}    
	       </div>
               
                
              </div>
            </div>
            </div>
            <!-- tab Shipping ends -->
	      <script>           
var msgShipAdd="{$language.msgShipAdd}";
var msgShipUpdate="{$language.msgShipUpdate}";
var msgShipDelete="{$language.msgShipDelete}";
var msgShipExist="{$language.msgShipExist}";
var msgShipstatuschange="{$language.msgShipstatuschange}";
var lblMinqtypershipping="{$language.lblMinqtypershipping}";
var lblMaxqtypershipping="{$language.lblMaxqtypershipping}";
var msgShipSet="{$language.msgShipSet}";
var lblUpdateShip="{$language.lblUpdateShip}";
  </script>
	      
{form->validate_script form="formShipSet"}
 <script type="text/javascript" src="{$view_javascript}/productShipping.page.js"></script>
 <script>
      $('.add-shipping').click(function () {
        $(':input','#formShipAdd').not(':button,#shipFree').val('');                    
         $(".chznDelivery").val('').trigger("liszt:updated");
          if ($("#isShipByMer").val()=='admin') {          
                    assignGlobalValues();
                                   }
	 $('#ajaxShipAddBlock').show();
        $('html,body').animate({ scrollTop: $('#ajaxShipAddBlock').offset().top}, 600);
      });
</script>
	     
	
	