WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: eShop] Encoding trouble in Russian when customers input their info! (6 posts)

  1. 4et
    Member
    Posted 5 years ago #

    Hi, I`m from Russia and if i write First name,for example, in russian - get error: First name - missing or incorrect. But in English - all right.
    How can my customers write their information in russian?
    Thank you.

  2. elfin
    Moderator
    Posted 5 years ago #

    that'll be the error checking I have - I'll look at amending it for a future release.

  3. 4et
    Member
    Posted 5 years ago #

    i'11 look forward to it.
    but how i can to switch checking fields ( to get rid of "required" fields).
    and check up only mail on validity?
    Give me i hint,please, which files i need to edit?
    thanks.

  4. elfin
    Moderator
    Posted 5 years ago #

    checkout.php but I don't recommend it.

  5. 4et
    Member
    Posted 5 years ago #

    i solved my problem
    in file cart-functions.php

    if (!function_exists('checkAlpha')) {
    	//check string is alpha only.
    	function checkAlpha($text){
    		 return preg_match ("/[A-z-]/", $text);
    	}
    }

    change to:

    if (!function_exists('checkAlpha')) {
    	//check string is alpha only.
    	function checkAlpha($text){
    		 return preg_match ("/[a-zа-яё0-9 ]/", $text);
    	}
    }

    return preg_match ("/[a-zа-яё0-9 ]/", $text); for russian symbols

  6. elfin
    Moderator
    Posted 5 years ago #

    I'll try and add that in for a future release, or change that function entirely

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags