<link rel="stylesheet" type="text/css" href="{$view_styles}/add-edit.css" media="screen" />
{*{form->fieldGroup 	
                fieldName		= "assignBusinessID" 
                group			= "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}]" 
                parentGroup		= "" 
                validate		= "enableBoyBoxSel->isequal->Yes~*required"
                error			= $language.errRequired}
{form->fieldGroup 	
                fieldName		= "businessOptionSKU" 
                group			= "businessOptionsGroup" 
                parentGroup		= "" 
                validate		= "enableBoyBoxSel->isequal->Yes~*required"
                error			= $language.errMerchantSKU}
{form->fieldGroup 	
                fieldName		= "businessOptionReqPrice" 
                group			= "businessOptionsGroup" 
                parentGroup		= "" 
                validate		= "enableBoyBoxSel->isequal->Yes~*required~*isPrice"
                error			= $language.errRequired|cat:"~*"|cat:$language.errValidRateShort|cat:"~*"|cat:$language.errRegularProductPrice
                postTrigger		= 'if($("#businessOptionsGroup_#0#_businessOptionSalePrice").val() != ""){$("#businessOptionsGroup_#0#_businessOptionSalePrice").blur()};'}                    
{form->fieldGroup 	
                fieldName		= "businessOptionSalePrice" 
                group			= "businessOptionsGroup" 
                parentGroup		= "" 
                validate		= "enableBoyBoxSel->isequal->Yes~*isPrice~*businessOptionsGroup_#0#_businessOptionSalePrice->isnotequal->~*businessOptionsGroup_#0#_businessOptionSalePrice->lt->businessOptionsGroup_#0#_businessOptionReqPrice" 
                error			= $language.errValidRateShort|cat:"~*~*~*"|cat:$language.errProductsalePrice}  
{form->fieldGroup 	
                fieldName		= "productOptionQuantity" 
                group			= "businessOptionsGroup" 
                parentGroup		= "" 
                validate		= "enableBoyBoxSel->isequal->Yes,InventoryTrackLevel->isequal->Product~*required~*isWholeNumberWithZero"
                error			= $language.errValidQuantity}*}
{*{form->fieldGroup 	
                fieldName		= "businessWareHouse" 
                group			= "productOptionsGroup" 
                parentGroup		= "" 
                validate		= "enableBoyBoxSel->isequal->Yes~*required"
                error			= $language.errWareHouse}*}

                
{if $busOptAdded|default:"" eq "Yes"}               
   {* {include file='AjaxAssignSellersList.tpl'}   *}
{/if}
{if $editMerchantVal|default:"" eq "Yes"}
    {assign var="merchantStyle" value=""}
{else}
    {assign var="merchantStyle" value="hide"}
{/if}

<li id="newMerchant_{$productOptionCount}_{$sellerIncr}" class="{$merchantStyle}" rel="{$sellerIncr}" productoptioncount={$productOptionCount}>
<ul class="popupMerchant">
    {form->hidden 
                        name            =   "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][assignBusinessID]"
                        id              =   "business_{$productOptionCount}_{$sellerIncr}"                        
                        value           =   $resBusiness[0]['businessID']|default:''}
                        {form->hidden name="productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][hiddenBusinessID]" value="{$busOptCount['businessID']|default:''}"}
        {form->hidden name="productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][hiddenProductOptionBusinessID]" value="{$busOptCount['productOptionBusinessID']|default:''}"}
{*<li class="clearfix">
    <div  class="left1 mandatory">{$language.lblBusiness}</div>
    <div class="right1 fixing_right">
        {form->select 
                        name            =   "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][assignBusinessID]"
                        id              =   "business_{$productOptionCount}_{$sellerIncr}"
                        class           =   "optionBusiness w267 required-entry-text"
                        options         =   $resBusiness 
                        caption         =   "->{$language.lblSelectBusiness}" 
                        rel		=   $sellerIncr  
                        fieldName	=   "assignBusinessID" 
                        group		=   "productOptionsGroup"
                        row		=   $sellerIncr
                        value           =   $busOptCount['businessID']|default:''}
        <span class="message_inline_validation hide" id="validate_business_value_{$productOptionCount}_{$sellerIncr}"></span>
        {form->hidden name="productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][hiddenBusinessID]" value="{$busOptCount['businessID']|default:''}"}
        {form->hidden name="productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][hiddenProductOptionBusinessID]" value="{$busOptCount['productOptionBusinessID']|default:''}"}
    </div>
</li>*}
{*<li class="clearfix">
    <div class="left1 mandatory">{$language.lblMerchantSKU}</div>
    <div class="right1 fixing_right"> 
        {form->textbox 
                        name            =   "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessOptionSKU]"
                        class           =   "textbox width-25per required-entry-text"
                        rel		=   $sellerIncr
                        fieldName	=   "businessOptionSKU" 
                        group		=   "productOptionsGroup"
                        row		=   $sellerIncr
                        value           =   $busOptCount['businessOptionSKU']|default:''} 
    </div>
</li>*}

<li class="clearfix">                 
    <div class="left1 mandatory">{$language.lblListPrice}</div>
    {if $busOptCount['productOptionRegularPrice']|default:"">0}
         {assign var="prodRegPrice" value="{$busOptCount['productOptionRegularPrice']|price_no_symbol}"}
    {else}
        {assign var="prodRegPrice" value=""}
    {/if}
    {if $busOptCount['productOptionProductPrice']|default:"">0}
         {assign var="prodSalePrice" value="{$busOptCount['productOptionProductPrice']|price_no_symbol}"}
    {else}
        {assign var="prodSalePrice" value=""}
    {/if}
    {if $busOptCount['dealPrice']|default:"">0}
         {assign var="dealPrice" value="{$busOptCount['dealPrice']|price_no_symbol}"}
    {else}
        {assign var="dealPrice" value=""}
    {/if}
    <div class="right1 ">
        <ul class="levl-02 clearfix">
            <li>{*<label class="label1">{$language.lblItemPrice}</label>*}
                {form->textbox 	
                                name                =   "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessOptionReqPrice]" 
                                id                  =   "productOptionsGroup_{$productOptionCount}_businessOptionsGroup_{$sellerIncr}_busOptReqPrice"
                                class               =   "textbox length0_50pers option_price_new required-entry" 
                                maxlength           =   "11"
                                rel                 =   $sellerIncr  
                                fieldName           =   "businessOptionReqPrice" 
                                group               =   "productOptionsGroup"
                                row                 =   $sellerIncr
                                value               =   $prodRegPrice}
                                {form->hidden name="productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessOptionSalePrice]" 
                                id                  =   "productOptionsGroup_{$productOptionCount}_businessOptionsGroup_{$sellerIncr}"
                                value="{$prodSalePrice}"}
            </li>
            {*<li><label class="label1">{$language.lblSaleprice}</label>
                {form->textbox 
                                name                =   "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessOptionSalePrice]"
                                id                  =   "productOptionsGroup_{$productOptionCount}_businessOptionsGroup_{$sellerIncr}"
                                class               =   "textbox length0_50pers option_price_new required-busOptSalePrice" 
                                maxlength           =   "11"
                                rel                 =   $sellerIncr  
                                fieldName           =   "businessOptionSalePrice" 
                                group               =   "productOptionsGroup"
                                row                 =   $sellerIncr
                                value               =   $prodSalePrice}
            </li>*}
            {if $setAsProductDeal|default:'' eq "Yes"}
                {assign var="dealPriceClass" value=""}
            {else}
                {assign var="dealPriceClass" value="hide"}
            {/if}
            <li class="{$dealPriceClass} dealPrice-Sec"><label class="label1">{$language.lblDealPrice}</label>
                {form->textbox  name= "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessOptionDealPrice]"  
                                id                  =   "productOptionsGroup_{$productOptionCount}_businessOptionsGroup_{$sellerIncr}_dealPrice"  
                                error_class		= "message_inline_validation" 
                                form			= $productForm 
                                validate_inline	= "yes" 
                                class			= "textbox length0_50pers option_price_new option-dealprice" 
                                rel                 =   $sellerIncr  
                                maxlength="11" 
                                fieldName		= "businessOptionDealPrice"
                                value			= $dealPrice
                                row                 =   $sellerIncr
                                group			= "productOptionsGroup"} 
 </li>
        </ul>
    </div>
</li>
{if $productInvLevel|default:'' eq 'Product'}
    {assign var="quanStyle" value=""}
    {assign var="quanClass" value="required-entry"}
{else}
    {assign var="quanStyle" value="hide"}
    {assign var="quanClass" value=""}
{/if}
<li class="clearfix busQuantitySec {$quanStyle}">
    <div class="left1 mandatory">{$language.lblQuantity}</div>
    <div class="right1 fixing_right"> 
        {form->textbox 
                        name            =   "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessQuantity]"
                        class           =   "textbox businessQuantity {$quanClass}"
                        rel		=   $sellerIncr
                        fieldName	=   "businessQuantity" 
                        group		=   "productOptionsGroup"
                        row		=   $sellerIncr
                        value           =   $busOptCount['productOptionQuantity']|default:''} 
    </div>
</li>

{*<li class="clearfix">
    <div class="left1">{$language.lblWareHouse}</div>
    {form->hidden name="hiddenWareHouse_{$productOptionCount}_{$sellerIncr}" value="{$busOptCount['busWareHouse']|default:''}"}
    <div class="right1 fixing_right" id="busWareHouse_{$productOptionCount}_{$sellerIncr}"> 
        {form->select 
                        name            =   "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessWareHouse]"
                        id              =   "productOptionsGroup_{$productOptionCount}_businessOptionsGroup_{$sellerIncr}_businessWareHouse"
                        caption         =   "->{$language.lblSelect}" 
                        class       =   "w267"
                        fieldName	=   "businessWareHouse" 
                        group		=   "productOptionsGroup"
                        row		=   $sellerIncr
                        value           =   $busOptCount['busWareHouse']|default:''}
    </div>
</li>
*}
{*<li class="clearfix">
    <div class="left1">{$language.lblDeliveryTime}</div>
    <div class="right1 fixing_right">                    
        {form->select 
                        name            =   "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessDispatchTime]"
                        options		=   "{$resPeriod}" 
                        caption         =   "->{$language.lblSelect}" 
                        fieldName	=   "businessDispatchTime" 
                        group		=   "productOptionsGroup"
                        class       =   "width-25per"
                        row		=   $sellerIncr
                        value           =   $busOptCount['businessDispatchTime']|default:''} 
    </div>
</li>
*}
{*
<li class="clearfix " >
    <div class="left1 ">{$language.lblGroupPrice}</div>
    <div class="right1">

        <ul id="group_prices_table">
            <li class="header clearfix">
                <div class="column"><label class="label1 ">{$language.lblCustomerGroup}</label></div>
                <div class="column"><label class="label1 ">{$language.lblPrice}</label></div>
            </li>
            <li class="levl-02 clearfix" id="business_group_price_container_{$productOptionCount}_{$sellerIncr}">
                {assign var="busGroupCnt" value="{$busOptCount['group_price']|count|default:0}"}
                {assign var="addedGroupCnt" value="0"}
                {if $busGroupCnt>0}
                    {assign var="addedGroupCnt" value=$busGroupCnt-1}
                {/if}

                {form->hidden name="groupIncrCount_{$productOptionCount}_{$sellerIncr}" value="{$addedGroupCnt}"}
                
                {assign var="groupIncr" value="{$groupIncr|default:0}"}
                {if isset($busOptCount['group_price'])}		   
                    {foreach $busOptCount['group_price'] as $key1=>$group_price}
                        {assign var="groupIncr" value="{$key1}"}
                        {include file="AjaxBusinessGroupPrice.tpl"}
                    {/foreach}
               
                {/if}
                <div class="message_validation hide" id="validate_usergroup_{$productOptionCount}_{$sellerIncr}"></div>  
            </li>
            <li>
                {html->anchor  class="btn-add curve-3 busAddGroupPrice" id="grpPrice_{$productOptionCount}_{$sellerIncr}" rel="{$sellerIncr}" productoptioncount="{$productOptionCount}" content="<span class='h'></span><span class='v'></span>{$language.lblAddGroupPrice}" title="{$language.lblAddGroupPrice}"}
            </li>
        </ul>

    </div>
</li>*}
                  
                  
{*{if $settingsBuyboxEnable|default:'' eq "Yes"}
<li class="clearfix">
    <div class="left1 mandatory"></div>
    <div class="right1 fixing_right"> 
        {assign var="busOptDefValue" value="{$busOptCount['businessOptionDefault']|default:''}"}
        {if $busOptCount['businessOptionDefault']|default:'' eq '' && $sellerIncr eq 0}
            {assign var="busOptDefValue" value="Yes"}
        {/if}
        {form->radio 
                        name            =   "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessOptionDefault]"
                        id              =   "businessDefOption_{$productOptionCount}_{$sellerIncr}"
                        class           =   "businessDefOption"
                        options		=   "Yes->{$language.lblSetasDefBusiness}" 
                        fieldName	=   "businessOptionDefault" 
			group		=   "productOptionsGroup"
                        row		=   $sellerIncr
                        rel		=   $sellerIncr
                        value           =   $busOptDefValue} 
    </div>
</li>
{else}
    {form->hidden name="productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessOptionDefault]" value="Yes"}
{/if}*}
{form->hidden name="productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][businessOptionDefault]" value="Yes"}
 {form->hidden name="productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][busProductStatus]" value="Active"}
{*{if $busOptDefValue neq "Yes"}
<li class="clearfix businessOptionStatus">
    <div class="left1 mandatory">{$language.lblStatus}</div>
    <div class="right1 fixing_right"> 
        {form->radio 
                        name            =   "productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][busProductStatus]"
                        id              =   "businessOptStatus_{$productOptionCount}_{$sellerIncr}"
                        class           =   "businessOptStatus"
                        options		=   "Active-><label>{$language.lblActive}</label>~*Inactive-><label>{$language.lblInactive}</label>" 
                        fieldName	=   "busProductStatus" 
			group		=   "productOptionsGroup"
                        row		=   $sellerIncr
                        rel		=   $sellerIncr
                        value           =   $busOptCount['busProductStatus']|default:'Active'} 
    </div>
</li>
{else}
    {form->hidden name="productOptionsGroup[{$productOptionCount}][businessOptionsGroup][{$sellerIncr}][busProductStatus]" value="Active"}
{/if}*}
</ul>
{*{if $sellerIncr>0 && $editMerchantVal|default:"" neq "Yes"}
    {html->anchor name="deleteMerchant" class="deleteMerchant" rel="{$sellerIncr}" productoptioncount="{$productOptionCount}" caption="<span class='delete02 icon-set'></span>{$language.lblDeleteMerchant}"}
{/if}*}
</li>