<?php /* Smarty version Smarty-3.1.8, created on 2019-12-24 14:21:48
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/AssignSellers.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10805963585da80ad383b1c9-23414129%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e55f762f716295de3da2b01c18d4224bc5797d57' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/AssignSellers.tpl',
      1 => 1577180533,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10805963585da80ad383b1c9-23414129',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da80ad387c236_45242513',
  'variables' => 
  array (
    'sellerIncr' => 0,
    'productOptions' => 0,
    'productOptionCount' => 0,
    'resBusinessOptions' => 0,
    'businessOptionCount' => 0,
    'addedBusOptCnt' => 0,
    'productID' => 0,
    'key' => 0,
    'enableBuybox' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da80ad387c236_45242513')) {function content_5da80ad387c236_45242513($_smarty_tpl) {?><?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['sellerIncr']->value)===null||$tmp==='' ? 0 : $tmp);?>
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["sellerIncr"] = new Smarty_variable($_tmp1, null, 0);?>
<?php $_smarty_tpl->tpl_vars["productForm"] = new Smarty_variable("Product", null, 0);?> 
<?php $_smarty_tpl->tpl_vars["resBusinessOptions"] = new Smarty_variable($_smarty_tpl->tpl_vars['productOptions']->value['businessOptionsGroup'], null, 0);?>
<ul id="businessOptionsID_<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
" class="businessOptionsID">
    <?php $_smarty_tpl->tpl_vars["businessOptionCount"] = new Smarty_variable((($tmp = @count($_smarty_tpl->tpl_vars['resBusinessOptions']->value))===null||$tmp==='' ? 0 : $tmp), null, 0);?>
    <?php $_smarty_tpl->tpl_vars["addedBusOptCnt"] = new Smarty_variable("0", null, 0);?>
    <?php if ($_smarty_tpl->tpl_vars['businessOptionCount']->value>0){?>
        <?php $_smarty_tpl->tpl_vars["addedBusOptCnt"] = new Smarty_variable($_smarty_tpl->tpl_vars['businessOptionCount']->value-1, null, 0);?>
    <?php }?>

    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"sellerIncrCount_".($_smarty_tpl->tpl_vars['productOptionCount']->value),'value'=>($_smarty_tpl->tpl_vars['addedBusOptCnt']->value)),$_smarty_tpl);?>

                        
    <?php if ($_smarty_tpl->tpl_vars['businessOptionCount']->value>0){?>
        <?php if ((($tmp = @$_smarty_tpl->tpl_vars['productID']->value)===null||$tmp==='' ? 0 : $tmp)>0){?>
           
           <?php $_smarty_tpl->tpl_vars["editMerchantVal"] = new Smarty_variable("Yes", null, 0);?>
        <?php }else{ ?>
            <?php $_smarty_tpl->tpl_vars["editMerchantVal"] = new Smarty_variable("Yes", null, 0);?>
        <?php }?>
               
        <?php  $_smarty_tpl->tpl_vars['busOptCount'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['busOptCount']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['resBusinessOptions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['busOptCount']->key => $_smarty_tpl->tpl_vars['busOptCount']->value){
$_smarty_tpl->tpl_vars['busOptCount']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['busOptCount']->key;
?>
            <?php $_smarty_tpl->tpl_vars["sellerIncr"] = new Smarty_variable(($_smarty_tpl->tpl_vars['key']->value), null, 0);?>
            <?php echo $_smarty_tpl->getSubTemplate ('AjaxAssignSellers.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

        <?php } ?>
    <?php }else{ ?>
        <?php $_smarty_tpl->tpl_vars["editMerchantVal"] = new Smarty_variable("Yes", null, 0);?>
        <?php echo $_smarty_tpl->getSubTemplate ('AjaxAssignSellers.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

    <?php }?>
</ul>
<?php if ((($tmp = @$_smarty_tpl->tpl_vars['enableBuybox']->value)===null||$tmp==='' ? '' : $tmp)=='Yes'){?> 
    <?php $_smarty_tpl->tpl_vars["enableBuyboxStyle"] = new Smarty_variable('', null, 0);?>
<?php }else{ ?>
    <?php $_smarty_tpl->tpl_vars["enableBuyboxStyle"] = new Smarty_variable("hide", null, 0);?>
<?php }?>   

<?php }} ?>