Hello
Help me how to add other types of users
For example: Auto Dealer, Realtor, Intermediary. Without plug-in
Standard code: user-register.php
<label for="user_type"><?php _e('Profile type', 'veronika'); ?></label>
<div class="input-box"><i class="fa fa-industry"></i><?php UserForm::is_company_select(osc_user()); ?></div>
<?php osc_run_hook('user_register_form'); ?>
Standard code: functions.php
// SIMPLE SELLER TYPE SELECT
function veronika_simple_seller( $select = false ) {
$id = Params::getParam('sCompany');
if($id == "") {
$name = __('All sellers', 'veronika');
} else if ($id == "0") {
$name = __('Personal', 'veronika');
} else if ($id == "1") {
$name = __('Company', 'veronika');
} else {
$name = __('All sellers', 'veronika');
}
if( !$select ) {
$html = '<div class="simple-seller simple-select">';
$html .= '<input type="hidden" name="sCompany" class="input-hidden" value="' . Params::getParam('sCompany') . '"/>';
$html .= '<span class="text round3 tr1"><span>' . $name . '</span> <i class="fa fa-angle-down"></i></span>';
$html .= '<div class="list">';
$html .= '<div class="option info">' . __('Choose seller type', 'veronika') . '</div>';
$html .= '<div class="option bold' . ($id == "" ? ' selected' : '') . '" data-id="">' . __('All sellers', 'veronika') . '</div>';
$html .= '<div class="option' . ($id == "0" ? ' selected' : '') . '" data-id="0">' . __('Personal', 'veronika') . '</span></div>';
$html .= '<div class="option' . ($id == "1" ? ' selected' : '') . '" data-id="1">' . __('Company', 'veronika') . '</span></div>';
$html .= '</div>';
$html .= '</div>';
return $html;
} else {
$html = '<select class="sCompany" id="sCompany" name="sCompany">';
$html .= '<option value="" ' . ($id == "" ? ' selected="selected"' : '') . '>' . __('All sellers', 'veronika') . '</option>';
$html .= '<option value="0" ' . ($id == "0" ? ' selected="selected"' : '') . '>' . __('Personal', 'veronika') . '</option>';
$html .= '<option value="1" ' . ($id == "1" ? ' selected="selected"' : '') . '>' . __('Company', 'veronika') . '</option>';
$html .= '</select>';
return $html;
}
}