In this system I have to choose between Vendor commission and Vendor package. I want both at the same time can anyone help

<div id="content-container">
    <div id="page-title">
        <center>
            <h1 class="page-header text-overflow">
                <?php echo translate('manage_activation')?>
            </h1>
        </center>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="col-md-12">
                <div class="panel panel-bordered panel-dark">
                    <div class="panel-heading">
                        <center>
                            <h3 class="panel-title"><?php echo translate('business_related')?></h3>
                        </center>
                    </div>
                    <div class="panel-body" style="background:#fffffb;">
                        <div class="col-md-4">
                            <div class="panel">
                                <div class="panel-heading bg-white">
                                    <center>
                                        <h4 class="panel-title">
                                            <?php echo translate('physical_product_activation')?>
                                        </h4>
                                    </center>
                                </div>
                    
                                <!--Panel body-->
                                <div class="panel-body">
                                   <div class="form-group">
                                       <div class="col-sm-4 col-sm-offset-5">
                                           <input class='aiz_switchery1' type="checkbox" 
                                                data-set='physical_product_set' 
                                                    data-id='68'
                                                        data-tm='<?php echo translate('physical_product_enabled'); ?>'                          data-fm='<?php echo translate('physical_product_disabled'); ?>' 
                                                            <?php if($this->crud_model->get_type_name_by_id('general_settings','68','value') == 'ok'){ ?>checked<?php } ?> />
                                       </div>
                                   </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4">
                            <div class="panel">
                                <div class="panel-heading bg-white">
                                    <center>
                                        <h4 class="panel-title">
                                            <?php echo translate('digital_product_activation')?>
                                        </h4>
                                    </center>
                                </div>
                   
                                <!--Panel body-->
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-5">
                                           <input class='aiz_switchery1' type="checkbox" 
                                                data-set='digital_product_set' 
                                                    data-id='69'
                                                        data-tm='<?php echo translate('digital_product_enabled'); ?>'                                           data-fm='<?php echo translate('digital_product_disabled'); ?>' 
                                                            <?php if($this->crud_model->get_type_name_by_id('general_settings','69','value') == 'ok'){ ?>checked<?php } ?> />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4">
                            <div class="panel">
                                <div class="panel-heading bg-white">
                                    <center>
                                        <h4 class="panel-title">
                                            <?php echo translate('product_bundle_activation')?>
                                        </h4>
                                    </center>
                                </div>
                    
                                <!--Panel body-->
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-5">
                                           <input class='aiz_switchery1' type="checkbox" 
                                                data-set='bundle_product_set' 
                                                    data-id='82'
                                                        data-tm='<?php echo translate('product_bundle_enabled'); ?>'                                           data-fm='<?php echo translate('product_bundle_disabled'); ?>' 
                                                            <?php if($this->crud_model->get_type_name_by_id('general_settings','82','value') == 'ok'){ ?>checked<?php } ?> />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4">
                            <div class="panel">
                                <div class="panel-heading bg-white">
                                    <center>
                                        <h4 class="panel-title">
                                            <?php echo translate('classified_product_activation')?>
                                        </h4>
                                    </center>
                                </div>
                    
                                <!--Panel body-->
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-5">
                                           <input class='aiz_switchery1' type="checkbox" 
                                                data-set='customer_product_set' 
                                                    data-id='83'
                                                        data-tm='<?php echo translate('customer_product_enabled'); ?>'                                           data-fm='<?php echo translate('customer_product_disabled'); ?>' 
                                                            <?php if($this->crud_model->get_type_name_by_id('general_settings','83','value') == 'ok'){ ?>checked<?php } ?> />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <style>
                            <?php if($this->crud_model->get_type_name_by_id('general_settings','58','value') !== 'ok'){ ?>
                                .show_vendor_ins{
                                    display: none;
                                }
                            <?php } ?>
                        </style>
                        <div class="col-md-4">
                            <div class="panel">
                                <div class="panel-heading bg-white">
                                    <center>
                                        <h4 class="panel-title">
                                            <?php echo translate('vendor_system_activation')?>
                                        </h4>
                                    </center>
                                </div>
                    
                                <!--Panel body-->
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-5">
                                           <input class='aiz_switchery2 ' type="checkbox" 
                                                    data-set='vendor_set' 
                                                        data-id='58'
                                                            data-tm='<?php echo translate('vendor_system_enabled'); ?>'                                             data-fm='<?php echo translate('vendor_system_disabled'); ?>' 
                                                                <?php if($this->crud_model->get_type_name_by_id('general_settings','58','value') == 'ok'){ ?>checked<?php } ?> />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 show_vendor_ins">
                            <div class="panel">
                                <div class="panel-heading bg-white">
                                    <center>
                                        <h4 class="panel-title">
                                            <?php echo translate('show_vendors')?>
                                        </h4>
                                    </center>
                                </div>
                    
                                <!--Panel body-->
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-5">
                                           <input class='aiz_switchery1' type="checkbox" 
                                                    data-set='show_vendor_set' 
                                                        data-id='81'
                                                            data-tm='<?php echo translate('vendor_show_enabled'); ?>'                                             data-fm='<?php echo translate('vendor_show_disabled'); ?>' 
                                                                <?php if($this->crud_model->get_type_name_by_id('general_settings','81','value') == 'ok'){ ?>checked<?php } ?> />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 show_vendor_ins">
                            <div class="panel">
                                <div class="panel-heading bg-white">
                                    <center>
                                        <h4 class="panel-title">
                                            <?php echo translate('vendor_commission')?>
                                        </h4>
                                    </center>
                                </div>
                    
                                <!--Panel body-->
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-5">
                                           <input class='aiz_switchery3' type="checkbox" 
                                                    data-set='vendor_commission_set' 
                                                        data-id='30'
                                                            data-tm='<?php echo translate('vendor_commission_enabled'); ?>'                                             data-fm='<?php echo translate('vendor_commission_disabled'); ?>' 
                                                                <?php if($this->crud_model->get_type_name_by_id('business_settings','30','value') == 'yes'){ ?>checked<?php } ?> />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 show_vendor_ins">
                            <div class="panel">
                                <div class="panel-heading bg-white">
                                    <center>
                                        <h4 class="panel-title">
                                            <?php echo translate('vendor_package')?>
                                        </h4>
                                    </center>
                                </div>
                    
                                <!--Panel body-->
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-5">
                                           <input class='aiz_switchery4' type="checkbox" 
                                                    data-set='vendor_package_set' 
                                                        data-id='30'
                                                            data-tm='<?php echo translate('vendor_package_enabled'); ?>'                                             data-fm='<?php echo translate('vendor_package_disabled'); ?>' 
                                                                <?php if($this->crud_model->get_type_name_by_id('business_settings','30','value') == 'no'){ ?>checked<?php } ?> />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                         <div class="col-md-4">
                            <div class="panel">
                                <div class="panel-heading bg-white">
                                    <center>
                                        <h4 class="panel-title">
                                            <?php echo translate('wallet_system')?>
                                        </h4>
                                    </center>
                                </div>
                    
                                <!--Panel body-->
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-5">
                                           <input class='aiz_switchery1' type="checkbox" 
                                                    data-set='wallet_system_set' 
                                                        data-id='84'
                                                            data-tm='<?php echo translate('wallet_system_enabled'); ?>'                                             data-fm='<?php echo translate('wallet_system_disabled'); ?>' 
                                                                <?php if($this->crud_model->get_type_name_by_id('general_settings','84','value') == 'ok'){ ?>checked<?php } ?> />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4">
                            <div class="panel">
                                <div class="panel-heading bg-white">
                                    <center>
                                        <h4 class="panel-title">
                                            <?php echo translate('guest_checkout')?>
                                        </h4>
                                    </center>
                                </div>
                    
                                <!--Panel body-->
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-5">
                                           <input class='aiz_switchery1' type="checkbox" 
                                                    data-set='guest_checkout_set' 
                                                        data-id='85'
                                                            data-tm='<?php echo translate('guest_checkout_enabled'); ?>'                                             data-fm='<?php echo translate('guest_checkout_disabled'); ?>' 
                                                                <?php if($this->crud_model->get_type_name_by_id('general_settings','85','value') == 'ok'){ ?>checked<?php } ?> />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
           
</div>
<style>
.bg-white{
    background:#ffffff !important;
    color:#000 !important;
}
</style>
<script src="<?php echo base_url(); ?>template/back/js/custom/business.js"></script>
<script>
    var base_url = '<?php echo base_url(); ?>';
    var user_type = 'admin';
    var module = 'business_settings';
    var list_cont_func = '';
    var dlt_cont_func = '';

    $(document).ready(function(e) {
        set_switchery1();
        set_switchery2();
        set_switchery3();
        set_switchery4();

    });
    function set_switchery1(){
        $(".aiz_switchery1").each(function(){
            new Switchery($(this).get(0), {color:'rgb(100, 189, 99)', secondaryColor: '#cc2424', jackSecondaryColor: '#c8ff77'});

            var changeCheckbox = $(this).get(0);
            var false_msg = $(this).data('fm');
            var true_msg = $(this).data('tm');
            changeCheckbox.onchange = function() {
                $.ajax({url: base_url+'admin/business_settings/'+$(this).data('set')+'/'+$(this).data('id')+'/'+changeCheckbox.checked, 
                success: function(result){  
                  if(changeCheckbox.checked == true){
                    $.activeitNoty({
                        type: 'success',
                        icon : 'fa fa-check',
                        message : true_msg,
                        container : 'floating',
                        timer : 3000
                    });
                    sound('published');
                  } else {
                    $.activeitNoty({
                        type: 'danger',
                        icon : 'fa fa-check',
                        message : false_msg,
                        container : 'floating',
                        timer : 3000
                    });
                    sound('unpublished');
                  }
                }});
            };
        });
    }

   
    function set_switchery2(){
        $(".aiz_switchery2").each(function(){
            new Switchery($(this).get(0), {color:'rgb(100, 189, 99)', secondaryColor: '#cc2424', jackSecondaryColor: '#c8ff77'});

            var changeCheckbox = $(this).get(0);
            var false_msg = $(this).data('fm');
            var true_msg = $(this).data('tm');
            changeCheckbox.onchange = function() {
                $.ajax({url: base_url+'admin/business_settings/'+$(this).data('set')+'/'+$(this).data('id')+'/'+changeCheckbox.checked, 
                success: function(result){  
                  if(changeCheckbox.checked == true){
                    $('.show_vendor_ins').show('fast');
                    $.activeitNoty({
                        type: 'success',
                        icon : 'fa fa-check',
                        message : true_msg,
                        container : 'floating',
                        timer : 3000
                    });
                    sound('published');
                  } else {
                    $('.show_vendor_ins').hide('fast');
                    $.activeitNoty({
                        type: 'danger',
                        icon : 'fa fa-check',
                        message : false_msg,
                        container : 'floating',
                        timer : 3000
                    });
                    sound('unpublished');
                  }
                }});
            };
        });
    }
    function set_switchery3(){
        $(".aiz_switchery3").each(function(){
            new Switchery($(this).get(0), {color:'rgb(100, 189, 99)', secondaryColor: '#cc2424', jackSecondaryColor: '#c8ff77'});

            var changeCheckbox = $(this).get(0);
            var changeCheckbox2 = $('.aiz_switchery4').get(0);
            var false_msg = $(this).data('fm');
            var true_msg = $(this).data('tm');
            changeCheckbox.onchange = function() {
                $.ajax({url: base_url+'admin/business_settings/'+$(this).data('set')+'/'+$(this).data('id')+'/'+changeCheckbox.checked, 
                success: function(result){  
                  if(changeCheckbox.checked == true){
                    // alert(changeCheckbox2.checked);
                    // changeCheckbox2.click();
                    location.reload();
                    $.activeitNoty({
                        type: 'success',
                        icon : 'fa fa-check',
                        message : true_msg,
                        container : 'floating',
                        timer : 3000
                    });
                    sound('published');
                  } else {
                    location.reload();
                    $.activeitNoty({
                        type: 'danger',
                        icon : 'fa fa-check',
                        message : false_msg,
                        container : 'floating',
                        timer : 3000
                    });
                    sound('unpublished');
                  }
                }});
            };
        });
    }
    function set_switchery4(){
        $(".aiz_switchery4").each(function(){
            new Switchery($(this).get(0), {color:'rgb(100, 189, 99)', secondaryColor: '#cc2424', jackSecondaryColor: '#c8ff77'});

            var changeCheckbox = $(this).get(0);
            var changeCheckbox2 = $('.aiz_switchery3').get(0);
            var false_msg = $(this).data('fm');
            var true_msg = $(this).data('tm');
            changeCheckbox.onchange = function() {
                $.ajax({url: base_url+'admin/business_settings/'+$(this).data('set')+'/'+$(this).data('id')+'/'+changeCheckbox.checked, 
                success: function(result){  
                  if(changeCheckbox.checked == true){
                    // $('.show_vendor_ins').show('fast');
                    //changeCheckbox2.click();
                    location.reload();
                    $.activeitNoty({
                        type: 'success',
                        icon : 'fa fa-check',
                        message : true_msg,
                        container : 'floating',
                        timer : 3000
                    });
                    sound('published');
                  } else {
                    // $('.show_vendor_ins').hide('fast');
                    //changeCheckbox2.click();
                    location.reload();
                    $.activeitNoty({
                        type: 'danger',
                        icon : 'fa fa-check',
                        message : false_msg,
                        container : 'floating',
                        timer : 3000
                    });
                    sound('unpublished');
                  }
                }});
            };
        });
    }
    
</script>

I have no idea what you are asking for and a code dump doesn’t give any information to put your question into context.

Sponsor our Newsletter | Privacy Policy | Terms of Service