<!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=utf-8" />
{assign var="productRequestID" value=$productRequestID|default:''}
{assign var="productID" value=$productID|default:''}
<title>{$language.lblAdmin}: {$language.lblProductsTitle} : {if $productRequestID}{$language.lblMenuAcceptProductrequest} {else if $productID} {$language.lblEditProduct} {else} {$language.lblAddNewProduct}{/if}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link href="{$view_styles}/jqueryui.plugin.css" rel="stylesheet" type="text/css" />
<link href="{$view_styles}/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/ui.daterangepicker.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/add-edit.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/colorbox.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/choosen.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/buybox.css" />
<script src="{$view_javascript}/chosen.pluggin.js" type="text/javascript"></script> 
{include file='CommonCustomStyles.tpl'}
</head>
<body>
<div class="outer_container">{include file='CommonTop.tpl'} 
  <!--End:Header Container--> 
  <!--***********************************************************************START CONTAINER SECTION******************************************************-->
  <div class="content_container equalHeight">
    <div class="content_wrapper">
      <noscript>
      <div class="message_info">{$language.lblJsEnable} !!</div>
      </noscript>
      <div class="fixing_right space-t-l">{include file='ContentLanguageOptions.tpl'}</div>
	  {assign var="productReqID" value=$productReqID|default:''}
         	
      
       
		<h2>
		  {if $productRequestID}{$language.lblMenuAcceptProductrequest} {else if $productID}{$language.lblEditProduct} ( {$productTitle} ){else} {$language.lblAddNewProduct}{/if}
		</h2>
      <div id="common_message"></div>
      <!-- Inner Content Container starts-->
      <div class="inner_content_wrapper"> 
        <!--top tab starts-->         
        <!--top tab ends--> 
        <!-- tab product details starts -->
          <div class="tab-content-outer  clearfix ">
            <div class="left_block fixing_left"> 
              <div class="tab-block-01">
                <h2>{html->anchor rel="product-details-save" caption="<span>&nbsp;</span>{$language.lblProductDetails}"}</h2>
              </div>
              <ul class="left-tab" id="maintab">
                <li class="sub">{html->anchor rel="product-details-save" caption="<span>{$language.lblGeneral}</span>" class="left-tab-a" id="general"}</li>
                 <li class="sub">{html->anchor rel="product-details-save" caption="<span>{$language.lblSKUandPrice}</span>" class="left-tab-a" id="qtyPrice"}</li>  
                <li class="sub">{html->anchor rel="product-details-save" caption="<span>{$language.lblContents}</span>" class="left-tab-a"}</li> 
		{if $bindOptionForm|default:'' eq '1'}
                <li class="sub">{html->anchor rel="custom-option-save" caption="<span>{$language.lblCustomOptions}</span>" class="left-tab-a"}</li>
                {/if}	
                {if $bindOptionForm|default:'' eq '1'}
                <li class="sub">{html->anchor rel="customcomb-option-save" caption="<span>{$language.lblInventory}</span>" class="left-tab-a"}</li>
                {/if}	
              </ul>
            </div>
            <!-- tab General tab-1 starts -->              
             <div class="right_block fixing_right">
             {form->start name="Product" action="" method="post" enctype="multipart/form-data" rel="product-details-save"}
			 <div id="product-details-save-section" class="save-floating-section">
             <div class="cm-buttons-floating">
              <div class="submit-position"> 
			  {form->submit name="submitProductDetails" id="submitProductDetails" class="button03 curve-3" value="{$language.lblSave}"}                
			  {$language.lblOr}
			  {if $approveProduct|default:'' eq "Yes"}
			  {html->anchor href="product/request/" content=$language.lblCancel tabindex="1"}
			  {else}
			  {html->anchor href="product/index/" content=$language.lblCancel tabindex="1"}
			  {/if}                          
			  </div>
            </div>
            <div class="cm-buttons"></div>
			</div>
            <div  class="tabpane">
              <div class="tabpane_inner"> <span class="BreadCrump">
                <ul class="clearfix">
                  <li> {$language.lblProductDetails}&raquo; </li>
                  <li> <span> {$language.lblGeneral} </span></li>
                </ul>
                </span>
                <div class="form_listing">
                  <ul class="levl-00">
                    <li>
                      <h3><span>{$language.lblBasicInfo}</span></h3>
                    </li>
                    {if $productID} 
	      {*{form->select class="selectbox-width"  name="attributeSetID" value=$resSelectproduct.attributeSetID  options=$resAttrSet  caption="->{$language.msgAttributeSet}" disabled=disabled}*}
	      {form->hidden name="hidAttrSetID" value=$attributeSetID|default:''}
              {form->hidden name="hidAttributeSetID" value=$attributeSetID|default:''}
              {else}
                  {form->hidden name="attributeSetID" value="1"}
	       {/if}
                                     
                      {*<li class="clearfix">
                            <div  class="left1 mandatory">{$language.lblBusiness}</div>
                            <div class="right1 fixing_right">
								{assign var="class" value=""}
								{if count($resBusiness) lt  2000}
									{assign var="class" value="choosen"}
								{/if}
								{assign var="businessID" value=$businessID|default:''}
								{form->select 
									class="{$class}" style="width:300px;"
									name="businessID" 
									value=$resSelectproduct.businessID|default:''  
									options=$resBusiness 
									caption="->{$language.lblSelectBusiness}" 
									validate="required" 
									error=$language.errBusiness}
								
								{form->hidden 
									name="selbusinessID" 
									value=$resSelectproduct.businessID|default:''}			  
                            </div>

                     </li>*}

					 <li class="clearfix">
                            <div  class="left1">{$language.lblBrandManufacturer}</div>
                            <div class="right1 fixing_right">	
								{assign var="class" value=""}
								{if count($listBrand) lt 2000}
									{assign var="class" value="choosen"}
								{/if}
								{form->select 
									class="{$class} selectbox-width" 
									name="brandID" 
									value=$resSelectproduct.brandID|default:''  
									options=$listBrand  
									caption="->{$language.lblSelectBrand}"}
			                </div>
                     </li>
               
					{if $productID}
                    <li class="clearfix">
                       <div class="left1 mandatory"> {$language.lblSelectedCategory} </div>
                       <div class="right1 fixing_right">{assign var="count" value=0}
                          {foreach from=$resProductcategory item="productCategoryName"} 
						  {if isset($productCategoryName.productCategoryName) && !is_numeric($productCategoryName.productCategoryName)}
						  {assign var="count" value={$count+1}}
						  {if $count>1}>>{/if}{$productCategoryName.productCategoryName}
						  {/if}
						  {/foreach}
                    </div>
                      </li>
                    {/if}
            	    <li class="clearfix">    
           {form->hidden  name="hiddenProductID" value=$productID|default:''}
	   {form->hidden  name="productTypeID" value=$resProductTypeList[0].productTypeID|default:''}
	   {form->hidden name="productTypeKey" value='product_product'}  
	    {form->hidden id="productSelectedType"  name="productSelectedType" value="product" rel="product"}                          
	
				 <div class="left1 mandatory">{$language.lblProductCategory} <span class="cmn-tooltip for_linkbuybox fixing_right"> <span class="icon-set icon-hlp"></span> <span class="tlptxt">{$language.lblfilterProducts}</span> </span></div>
				 <div class="right1 fixing_right top-spc">
				 <div class="category-section pos-relative width-60per"> <i></i>
				  <div class="div-city" id="selProductCategory">
                      <div class="fixed-section">
                          <h2>{$language.lblProductCategory}</h2>
                      {assign var="categoryValue" value=""}

				{form->textbox name="filterCategories" class="filterBrands text-box margin-bottom" placeholder="Search Categories"}
                          </div>
				{assign var="categoryValue" value=""}
			        <ul  class="dragtree categoryList" id="categoryList">
							  

                <!--menu function-->
                 {function name=categories level=0 catValues=0}

                {foreach from=$data item="productCategory"} 
					
					 {if $productCategory.productCategoryStatus=='Inactive'}
				   {assign var="categoryName" value="<span class='inactive'>"|cat:$productCategory.productCategoryName|cat:"</span>"}              
				  {else}
				  {assign var="categoryName" value=$productCategory.productCategoryName} 
				  {/if}
					
		
                        <li  data-level="{$level}" category="{$productCategory.productCategoryID}" catname="{$productCategory.productCategoryName}" class="left-spacing {if $productCategory.productCategoryID==1} ui-state-disabled hide {/if} li_catIDs" >
                     
                           
                                  
							
									{if !(in_array($productCategory.productCategoryID, $categoryIDList|default:array()))}
                                    <span class="expand {if !(!empty($productCategory['children']) && is_array($productCategory['children']))}hide{/if}"></span>
									{else}
									<span class="expand colapse {if !(!empty($productCategory['children']) && is_array($productCategory['children']))}hide{/if}"></span>
									{/if}
									{if !(!empty($productCategory['children']) && is_array($productCategory['children']))}
																		  
									 {assign var="categoryValue" value=$catValues|cat:","|cat:$productCategory.productCategoryID}
										{*{if !(in_array($productCategory.productCategoryID, $categoryIDList|default:array()))}
										 {assign var="disable" value="disabled"}
										 {else}
										  {assign var="disable" value=""}
										 {/if}*}

									
									{form->checkbox   name="productCategoryID" class="categoryTree" id="category" options=$categoryValue|cat:"->"|cat:"&nbsp;"|cat:$categoryName value=$resProductcategory|default:''} 
									{else}
                                   
									 {assign var="categoryValue" value=$catValues|cat:","|cat:$productCategory.productCategoryID}
									
									{$categoryName} 
									{/if}
									
								
                         
							{assign var="children" value=$productCategory['children']|default:''}
                             {if isset($productCategory['children']) && is_array($productCategory['children']) && !empty($productCategory['children'])}
                               <ul id="" class="categoryList {if !(in_array($productCategory.productCategoryID, $categoryIDList|default:array()))}hide {/if}"> 
                            {call name=categories data=$children level=$level+1 catValues=$categoryValue}  <!--menu function calling-->
                            </ul>
                          
                        {else}
                             {if (is_array($productCategory)) && (isset($productCategory['menuItemID'])) && (is_numeric($productCategory['menuItemID']))}
                        </li>	
                        {/if}
                    {/if}
            {/foreach}  
          {/function}
          {call categories data=$resProductCategories} <!--menu function calling-->
             	 </ul>  
</div>
				 
				 {form->validate name="categorySelected" validate="hiddenbuyboxStatus->isnotequal->Yes~*required" error=$language.errSelectAnyCategory}
                                 </div></li>	
                                 
                                      <li class="clearfix">
                       <div class="left1 mandatory"> {$language.lblProductTitle} </div>
                       <div class="right1 fixing_right linkbuybox">
                          {form->textbox  name="productTitle"  validate="hiddenbuyboxStatus->isnotequal->Yes~*required"  error=$language.errProductTitle class="textbox width-60per"  maxlength="225"}
                    </div>
                       </li>
                      <li class="clearfix">
                        <div class="left1"> {$language.lblProductUrl} </div>
                        <div class="right1 fixing_right">
                 
                          {form->textbox  name="productUrl"  class="textbox width-60per"  maxlength="225" validate="isUrlKey~*productUrl->database->products,productUrl,productID!='{$productID|default:""}' AND productStatus!='Deleted'" error=$language.errValidProductIDKey|cat:'~*'|cat:$language.errUrlKeyExists validate_inline="yes"}
						  {if $settingsRedirectUrl|default:''}
						  <br/>
						{form->checkbox name="redirectOption" value="RP" checked="{if $settingsRedirectUrl=='Yes'}True{/if}"   disabled="disabled"}
						{$language.lblPermanentRedirect}	
						{/if}
                                                {form->hidden name="oldProductUrl" value=$productUrl|default:''}
                        </div>
                    </li>
                        {form->hidden name="productStartTime" value=""}
                        {form->hidden name="productEndTime" value=""}
                        {form->hidden name="hiddenSetProductDeal"}                              
                          	      

                       				  
							
                              {assign var="isProductDeal" value=$isProductDeal|default:''} 
								{assign var="productDeal" value=$productDeal|default:''}
								{if $isProductDeal=="Yes" && $productID!=""}
                            {assign var="productDeal" value="Yes"}                             
                             {/if}
                             {if $isProductDeal=="No" && $productID!=""}                       
                              {assign var="productDeal" value="No"}
                             {/if}
                             {form->hidden name="isProductDeal" value=$productDeal}
                              {form->hidden name="dealStartTime" value=""}
                              {form->hidden name="dealEndTime" value=""}
                              {form->hidden name="dealDiscount" value=""}

						     
                          
						
					<li class="clearfix">
                       <div class="left1"> {$language.lblBodyType} </div>
                       <div class="right1 fixing_right linkbuybox">
                          {form->textbox  name="bodyStyle" class="textbox width-27per"  maxlength="100"}
                    </div>
                       </li>					  
			 {assign var="featuredStatus" value=$featuredStatus|default:''}
			 {assign var="featured" value=$featured|default:''}	
                         {if $featuredStatus=="Yes" && $productID!=""}
                            {assign var="featured" value="checked"}
                         {/if}
                         {if $featuredStatus=="No" && $productID!=""} 
                            {assign var="featured" value=""}
                         {/if} 
                          
                               <li class="clearfix">
                            <div class="left1 ">{$language.lblFinanceAvail}</div>
                            <div class="right1 fixing_right top-spc">
                              <ul class="levl-03">
							  {assign var="financeAvail" value=$financeAvail|default:''}
							  {assign var="finance" value=""}
                                <li>{if $financeAvail=="Yes" && $productID!=""}
                              {assign var="finance" value="checked"}
                              {/if}
                              {if $financeAvail=="No" && $productID!=""}                       
                             
                               {assign var="finance" value=""}
                              {/if}  
                                {form->checkbox  id="financeAvail" name="financeAvail" value="Yes" checked=$finance class="checkbox01"}
                               </li>
                              </ul>
                            </div>
                          </li>
                                 <li class="clearfix">
                            <div class="left1 ">{$language.lblLeaseAvail}</div>
                            <div class="right1 fixing_right top-spc">
                              <ul class="levl-03">
							  {assign var="leaseAvail" value=$leaseAvail|default:''}
							  {assign var="lease" value=""}
                                <li>{if $leaseAvail=="Yes" && $productID!=""}
                              {assign var="lease" value="checked"}
                              {/if}
                              {if $leaseAvail=="No" && $productID!=""}                       
                             
                               {assign var="lease" value=""}
                              {/if}  
                                {form->checkbox  id="leaseAvail" name="leaseAvail" value="Yes" checked=$lease class="checkbox01"}
                               </li>
                              </ul>
                            </div>
                          </li>
			  {*<li class="clearfix">
                	       <div class="left1">{$language.lblEnableInventoryTracking}</div>
                           <div class="right1 fixing_right">                    
			     {form->select class="width-27per" id="InventoryTrackLevel" name="InventoryTrackLevel" options="No->{$language.lblDoNotTrack}~*Product->{$language.lblProductLevel}"}	 
                          </div>
                         </li>*}
			  
				
				
                                {if $productID}
			         <li class="clearfix">
                              <div class="left1 mandatory">{$language.lblStatus}</div>
                              <div class="right1 fixing_right top-spc"> {form->radio name="productStatus" class="customradio" options="Review->{$language.lblReview}~*Active->{$language.lblActive}~*Inactive->{$language.lblInactive}" value="Active"} </div>
                          </li> 
                         {/if}                 
                          {form->hidden id="featuredStatus" name="featuredStatus" value="No"}
                          {form->hidden name="InventoryTrackLevel" value="No"}
                          {form->hidden name="popularity" value=""}
                          {form->hidden name="purchasePopularity" value=""}
                          {form->hidden name="hidshippingStatus" value="Free"}   
                          {assign var="productImage" value=$productImage|default:''}
                          {form->hidden name="hidMainImage" value=$productImage}   
                          {form->hidden name="hidThumbImage" value=$productImage}	
                          {form->hidden name="thumbPreview" value=$thumbPreview|default:''}
			{form->hidden name="productID" value=$productID}          
                        {form->hidden name="productRequestID" value=$productReqID} 
                        {form->hidden name="productCommisionhidden" value=$globalCommisionPercentage|default:''}  
                    </li>                   
                     
                    
                  </ul>
                </div>
              </div>
            </div>
            <!-- tab General tab-1 ends --> 
            <!-- tab Contents tab-2 starts -->
             <div class="tabpane">
              <div class="tabpane_inner"> <span class="BreadCrump">
                <ul class="clearfix">
                  <li> {$language.lblProductDetails}&raquo; </li>
                  <li>{$language.lblSKUandPrice}</li>
                </ul>
                </span>
                <div class="form_listing">
                  <ul class="levl-00">
                  
                  <li class="clearfix">
                      <h3><span>{$language.lblSKUandPrice}</span></h3>
                      </li>
                        <li class="clearfix">
                      <div class="left_box">
                        <ul class="levl-01">
                       {form->hidden name="productMinBuyLimit" value="1"}
                       {form->hidden name="productMaxBuyLimit" value=""}
                       {form->hidden name="productDefaultCurrency" value=$defaultCurrency} 
                       {form->hidden name="productQuantityNotifyAt" value="1"} 
                          {if $taxApplicable=="Yes"}
                              {assign var="tax" value="checked"}
                              {else}
                               {assign var="tax" value=""}
                          {/if} 
			             
				      <li class="clearfix stock">
                            <div class="left01 ">{$language.lblShowAvailQty}</div>
                            <div class="right01 fixing_right">                            
            {form->textbox name= "showQuantityAvailable"  class= "textbox length0_50pers"
                    maxlength		= "9" validate="InventoryTrackLevel->isnotequal->No~*showQuantityAvailable->isnotequal->~*isWholeNumberWithZero" error=$language.errValidQunatity}
                    </div>
                           </li>
				     
                        {* {if $taxApplicable=="Yes"}
                          <li class="clearfix">
                            <div class="left01">{$language.lblTaxClass}</div>
                            <div class="right01 fixing_right"> {form->select  name="taxClassID" options=$resTaxClass caption="->{$language.lblSelectTaxClass}"} </div>
                          </li>
                          {assign var="TtoB" value=""}
                             {if $taxPayableToBusiness|default:''=="Yes" && $productID!=""}
                              {assign var="TtoB" value="checked"}
                              {/if}
                              {if $taxPayableToBusiness|default:''=="No" && $productID!=""}
                               {assign var="TtoB" value=""}
                              {/if}
			      {if $settingsTaxToMerchant|default:''=="Yes" && $productID==""}			      
			      {assign var="TtoB" value="checked"}
			      {/if}
                          <li class="clearfix" id="taxpayable" style="display:none;">
                            <div class="left01 ">&nbsp;</div>
                            <div class="right01 fixing_right"> {form->checkbox id="taxToBusiness" name="taxToBusiness" value="Yes" checked=$TtoB class="checkbox01"}
                              {$language.lblTaxTobusiness} </div>
                          </li>
			  {/if} 
			  *}
                  
			</ul>
                      </div>
                 </li>        
                 
                        {form->hidden name="enableBuybox" value="No"}
                        {form->hidden name="enableBoyBoxSel" value="No"}
                         
                        {if $multiOptionsAvailable|default:''=="Yes"}                    
                              {assign var="enableMultiple" value="checked"}                    
                              {else}                    
                              {assign var="enableMultiple" value=""}                    
                              {/if}
			      {form->hidden name="enableMultiple" value=$enableMultiple}
                    
                                  
              {*      <li class="clearfix first remove-padding">
                    <div class="left1 "><label for="MultipleOptions">{$language.lblMOptions}</label></div>
                      <div class="right1 top-spc">{if $multiOptionsAvailable|default:''=="Yes"}                    
                              {assign var="enableMultiple" value="checked"}                    
                              {else}                    
                              {assign var="enableMultiple" value=""}                    
                              {/if}
			      {form->hidden name="enableMultiple" value=$enableMultiple}
                        {form->checkbox  id="enableMultipleOptions" name="enableMultipleOptions" value="Yes" checked=$enableMultiple class="checkbox01"}
                        <span class="cmn-tooltip"><span class="icon-set icon-hlp"></span> <span class="tlptxt">{$language.lblmvariantToolTip}</span></span>
                      </div>
                    </li>*}
                    
                    <li class="clearfix " id="optionTab"> 
                    {include file='ProductAdd_Options.tpl'}<div class="single-option"><a class="btn-add curve-3 fixing_right" id="add_new_options"><span class="h"></span><span class="v"></span>{$language.lblAddOptions}</a></div>  </li>
                   
                  </ul>                  
                {*  <ul class="levl-00">
                    <li>
                      <h3><span>{$language.lblAdditionalDetails}</span></h3>
                    </li>                                        
                    <li  class="clearfix">
                      <div class="left_box">
                      <div class="left01">{$language.lblWebsiteCommission}</div>
                      <div class="right01">
                    {form->textbox name="productCommissionRate" value=$productCommissionRate|default:'' readonly="readonly" validate="isPercentage"  error=$language.errValidCommission class="textbox width-50per disabled"}
                          
                          </div>
                      </div>
					   {if $globalCommisionPercentage|default:'' && $globalCommision|default:''=="Yes"}
                      <div class="right_box">
                        {if $productUseGlobalCommision|default:''=="Yes"}                  
                            {assign var="checked" value="checked"}                  
                            {else}                  
                            {assign var="checked" value=""}                  
                            {/if}                  
&nbsp;{form->checkbox  value="Yes" name="productUseGlobalCommision" id="productUseGlobalCommision" checked=$checked class=" checkbox01"}
                            <label for="productUseGlobalCommision">{$language.lblUseCategoryLevel}</label>
                      </div>{/if}
                    </li> 
                      <li class="clearfix"><div  class="left_box">
                      <div class="left01">{$language.lblServiceFeeIfany}</div>
                      <div class="right01">
                        {form->textbox  maxlength="8" name="productServiceFee" validate="isPrice"  error=$language.errValidAmount class="textbox width-50per"}
                          </div></div></li> 
                  </ul>*}
                  
                  
                </div>
              </div>
            </div>   
             <!-- tab Contents tab-2 ends -->  
            <div class="tabpane">
              <div class="tabpane_inner"> <span class="BreadCrump">
                <ul class="clearfix">
                  <li> {$language.lblProductDetails}&raquo; </li>
                  <li> <span> {$language.lblContents} </span></li>
                </ul>
                </span>
                <div class="form_listing">
                  <ul class="levl-00">
		     <h3><span>{$language.lblProductInfo}</span></h3>
                          <li class="clearfix"> 
                      <!--start: left pane -->
                      <div class="left1 "><strong>{$language.lblShortDescription}</strong></div>
                      <div class="right1">
                          {form->editor  mode="simple" skin=2 name="productShortDescription" id="productShortDescription" value=$resSelectproduct.productShortDescription class="text-area-01"}
                      </div>
                    </li>   
                  <li class="clearfix"> 
                      <!--start: left pane -->
                      <div class="left1 "><strong>{$language.lblDescription}</strong></div>
                      <div class="right1">
                          {form->editor  mode="simple" skin=2 name="productDescription" id="productDescription" validate="required" value=$resSelectproduct.productDescription error=$language.errProductDescription class="text-area-01"}
                      </div>
                    </li>
                    
		          <li class="clearfix">
                    <div class="left1"> {$language.lblSearchTags} </div>
                    <div class="right1 "> 
						
						<div class="dropdownlist_04 curved" id="autosuggesttags">  
						{form->textbox  name="searchTags" maxlength="50" type="text" value="" autocomplete="off" class="as-input text-area-01 width-60per"} 
				 </div>
                 <span class="sub-text">{$language.lblSeparateSearchTagsText}</span>
						{*form->textarea  tabindex="20" name="searchTags" class="text-area-01 width-60per"*}
					</div>
                  </li>
                  <li class="clearfix">
                    <div class="left1"> {$language.lblMetaTitle} </div>
                    <div class="right1 "> {form->textbox   name="productMetaTitle" class="textbox width-60per"}</div>
                  </li>
                  
                   <li class="clearfix">
                    <div class="left1"> {$language.lblMetakeywords} </div>
                    <div class="right1 "> {form->textarea   name="productMetaKeywords" class="text-area-01 width-60per" cols="4" rows="4"} 
                    </div>
                  </li>
                  <li class="clearfix">
                    <div class="left1"> {$language.lblMetaDescription} </div>
                    <div class="right1 ">
                      {form->textarea   name="productMetaDescription" class="text-area-01 width-60per" cols="4" rows="4"} 
                    </div>
                  </li>
				  
					
                  </ul>
                </div>
              </div>
            </div>                      


            <!-- tab Settings tab-4 ends -->          		 
		  {form->close} 
	     
	      {include file='ProductCustomOption.tpl'}
	      {form->hidden name="optionBlockChange" value="0"}
	      {include file='ProductInventory.tpl'}
	      {*{include file='ProductShipping.tpl'}*}

		
		</div>        
          </div>
      </div>
      <!-- tab product details ends -->       
    </div>
  </div>
  <!-- tab product details ends --> 
			
	<script type="text/template" id="tierPriceRowTemplate">
	<div class="clearfix parent">
                        <div class="column">
		  {form->select 
					caption="->{$language.lblAllGroups}"
					options="{$listUsergroups}" 
					rel="<%= productOptionCount%>_<%= index%>"
					productOptionCount="<%= productOptionCount%>"
					name="<%= group%>[<%= productOptionCount%>][tier_price][<%= index%>][userGroupID]"  
					class="<%= prefix%>tier_price_user_group input-text custgroup"}
					<span class="message_validation tier_<%= productOptionCount%>_<%= index%>  hide"><span>{$language.errDuplicateCombination}</span></span>
		    </div>
            <div class="column sml">
			<small class="nobr">{$language.lblandabove}</small>
		   {form->textbox 
					class="<%= prefix%>tier_price_qty <%= productOptionCount%>_<%= index%> textbox required-entry length30"
					validate="callback_tierprice_quantity"
					error="Required"
					name="<%= group%>[<%= productOptionCount%>][tier_price][<%= index%>][quantity]"}
				
		    </div>
			
                    <div class="column">
			{form->textbox 
					class="tier_price_tier_price <%= productOptionCount%>_<%= index%> textbox required-entry validate-zero-or-greater"
					validate="callback_tierprice_price"
					error="Required"
					name="<%= group%>[<%= productOptionCount%>][tier_price][<%= index%>][tierPrice]"}
		    </div>
            <div class="column-del"><a title="Delete Tier"  class="icon-set delete02 txt-hide" id="tier_price_row_<%= index%>_delete_button" onclick="return tierPriceControl.deleteItem($(this));">
					{$language.lblDelete}</a>
									</div>
            </div>
	</script>
</div>
{include file='CommonBottom.tpl'}
</div>
<!--End:Outer Container-->
{include file='CommonJavaScriptBottom.tpl'} 
<script type="text/javascript" src="{$view_javascript}/jquery.multiselect.widget.js"></script> 
<script type="text/javascript" src="{$view_javascript}/custom-radiobutton.js"></script> 
<script type="text/javascript">
    var sysKeys = '{$sysKeys}';
    $(function(){
	 $('#perioddiv input').customInput('');
	});	
</script> 
<script type="text/javascript" src="{$common_js}/uploadImage.plugin.js"></script> 
<script type="text/javascript" src="{$view_javascript}/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="{$view_javascript}/jquery.autoSuggest.js"></script>
{form->editor_script names="productHighlights,productDescription,productShortDescription"}
{html->messages_script id="common_message"}
{form->basepath_script}
{form->rootpath_script}
{assign var="tagnames" value=$searchTags}
{assign var="tagnames" $tagnames|replace:'"':'quot;'}
{assign var="tagnames" $tagnames|replace:"'":"apos;"}
<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script> 
<script type="text/javascript" src="{$common_js}/underscore.plugin.js"></script> 
<script type="text/javascript">
var settingsRedirectUrl = '{$settingsRedirectUrl}';
var data = "{$tagnames}";
var lblAlertOk='{$language.lblAlertOk}';
var strtpass="{$language.errPassedTime}";
var optionprice="{$language.errProductRegularPrice}";
var currDate="{$currDate|customDate}";
var msgSearchWarning="{$language.msgSearchWarning}";
var msgSelectAtleastOne="{$language.msgdelOption}";
var msgSelectDifferentNames="{$language.msgSelectDifferentNames}";
var msgSelectDifferentNamesoption="{$language.msgSelectDifferentNamesoption}";
var msgDeleteItem="{$language.msgDeleteItem}";
var msgDeleteImage="{$language.msgDeleteImage}";
var msgSaveImage="{$language.msgSaveImage}";
var msgOptionDeleted="{$language.msgOptionDeleted}";
var lblDelete="{$language.lblDelete}";
var msgNoImagesAdded="{$language.msgNoImagesAdded}";
var msgOptionSaved="{$language.msgOptionSaved}";
var msgNoOptionsAdded="{$language.msgNoOptionsAdded}";
var msgRelatedProductsSaved="{$language.msgRelatedProductsSaved}";
var msgUpsellProductsSaved="{$language.msgUpsellProductsSaved}";
var msgCrosssellProductsSaved="{$language.msgCrosssellProductsSaved}";
var msgFreeProductsSaved="{$language.msgFreeProductsSaved}";
var msgdeldefaultOption="{$language.msgdeldefaultOption}";
var errProductRegularPrice="{$language.errProductRegularPrice}";
var productType="Product";
var lblSelectItem ="{$language.lblSelectItem}";
var errRequired 	=	"{$language.errRequired}";
var errValidNumber 	=	"{$language.errValidNumber}";
var lblPageLeaveAlert = "{$language.lblPageLeaveAlert}";
var defaultCurrency={$defaultCurrency};
var lblSelproducts = "{$language.lblSelectProducts}";
var lblProducts = "{$language.lblProducts}";
var errDuplicateCombination="{$language.errDuplicateCombination}";
var errDuplicateMerchant="{$language.errDuplicateMerchant}";
</script> 
<script type="text/javascript" src="{$view_javascript}/jquery.colorbox.js"></script>
<script type="text/javascript">  
var lblSelect 			= "{$language.lblSelect}";
var lblFreeProductErr1          = "{$language.lblFreeProductErr1}";
var postCallback = "{$postCallback}";
var __currentTab = "";
//use Rel as assign value
{if $ctab=='coption'}
__currentTab="custom-option-save";
{else if $ctab=='coptioncomb'}
__currentTab="customcomb-option-save";
{else if $ctab=='cattr'}
__currentTab="attribute-save";
{/if}
</script>
{literal}
<script type="text/javascript">

	$(document).ready(function(){
		$('#layoutActiveFrom').datepicker();
		$('#layoutActiveTo').datepicker();
        
        $('.category-section i').click(function(){

            $('.category-section').toggleClass('open');
           $('body').toggleClass('overflow');
        });
       $('#sellAsBatch').click(function(){
                    showhidebatch();
                });
                showhidebatch(); 
       
	});
function showhidebatch(){
            if ($("#sellAsBatch").is(':checked')) {
                $('.sellasbatch').show();
            }else{
            $('.sellasbatch').hide();
            }
        }	
		
	
</script>
{/literal}
<script type="text/javascript" src="{$view_javascript}/buybox.page.js"></script>
<script type="text/javascript" src="{$view_javascript}/productCommon.page.js"></script> 
<script type="text/javascript" src="{$view_javascript}/productAdd.page.js"></script>
{form->validate_script form="Product"}
</body>
</html>
