zacctmgr_commission_type?$data->zacctmgr_commission_type:'order_level';
$value1 = '';
$value2 = '';
$type1 = '';
$type1 .= '';
$type2 = '';
$type2 .= '';
$order_count = (isset($data->zacctmgr_commission_order_count) && (int)$data->zacctmgr_commission_order_count > 1)?(int)$data->zacctmgr_commission_order_count:1;
$order1 = '';
/* Apply 1 */
$apply1 = '';
$style_fixed = 'style="display: block;"';
$style_percentage = 'style="display: none;"';
if(isset($data->zacctmgr_commission_new_type) && $data->zacctmgr_commission_new_type == 'percentage'){
$style_fixed = 'style="display: none;"';
$style_percentage = 'style="display: block;"';
}
$zacctmgr_commission_new_exclude_options = isset($data->zacctmgr_commission_new_exclude_options)?$data->zacctmgr_commission_new_exclude_options:[];
$apply1 .= '
';
$apply1 .= '
Order Total
';
$apply1 .= '
';
foreach(ZACCTMGR_EXCLUDE_OPTIONS as $key => $label){
$extra = in_array($key, $zacctmgr_commission_new_exclude_options)?'checked="checked"':'';
$apply1 .= '
';
$apply1 .= '';
$apply1 .= '';
$apply1 .= '
';
}
$apply1 .= '
';
$apply1 .= '
';
$apply1 .= '';
$apply1 .= '
Fixed Value Amount
';
$apply1 .= '';
/* Apply 1 End */
/* Apply 2 */
$apply2 = '';
$style_fixed = 'style="display: block;"';
$style_percentage = 'style="display: none;"';
if(isset($data->zacctmgr_commission_existing_type) && $data->zacctmgr_commission_existing_type == 'percentage'){
$style_fixed = 'style="display: none;"';
$style_percentage = 'style="display: block;"';
}
$zacctmgr_commission_existing_exclude_options = isset($data->zacctmgr_commission_existing_exclude_options)?$data->zacctmgr_commission_existing_exclude_options:[];
$apply2 .= '';
$apply2 .= '
Order Total
';
$apply2 .= '
';
foreach(ZACCTMGR_EXCLUDE_OPTIONS as $key => $label){
$extra = in_array($key, $zacctmgr_commission_existing_exclude_options)?'checked="checked"':'';
$apply2 .= '
';
$apply2 .= '';
$apply2 .= '';
$apply2 .= '
';
}
$apply2 .= '
';
$apply2 .= '
';
$apply2 .= '';
$apply2 .= '
Fixed Value Amount
';
$apply2 .= '';
/* Apply 2 End */
if(isset($_GET['_wpnonce']) && wp_verify_nonce($_GET['_wpnonce'], 'zacctmgr_edit_commission')){
echo '';
}
echo '';
echo '
Edit Commission
';
echo '';
echo '
Account Manager Commission Edit
';
echo '
';
echo '
';
?>