How To User/buyer Deny To Sign Up With Same Mobile No ?

Hello cs cart experts we are useing cs cart multi vendor 4.3.6

we have <> field in <> page please see snapshot cs4

Now i want one mobile no can make one account like email id.

But right now user can make many account with same mobile no it will be issue in future

so how can we do it only one Phone no allow for only one account & if any user try to make another account with same phone no than he/she will received error like snapshot cs5

cs4.jpg

cs5.jpg

Use the update_user_pre hook in the fn_update_user function (app/functions/fn.users.php) to check if this phone number is used slready

Use the update_user_pre hook in the fn_update_user function (app/functions/fn.users.php) to check if this phone number is used slready

Hello thanks for reply dear ecom can you please provide code for it ??

Hello thanks for reply dear ecom can you please provide code for it ??

Send us your requirements to get a quote for this work

I found code in app/functions/fn.users.php for email :

// Check if this user needs login/password
    if (fn_user_need_login($user_data['user_type'])) {
        // Check if user_login already exists
        // FIXME
        if (!isset($user_data['email'])) {
            $user_data['email'] = db_get_field("SELECT email FROM ?:users WHERE user_id = ?i", $user_id);
        }
    $is_exist = fn_is_user_exists($user_id, $user_data);

    if ($is_exist) {
        fn_set_notification('E', __('error'), __('error_user_exists'), '', 'user_exist');

        return false;
    } 

so want to know what code need to add for mobile ??

Send us your requirements to get a quote for this work

Done please check you email contact@ecom-labs.com

Done please check you email contact@ecom-labs.com

Our managers will contact you shortly