• Hello there,
    thanks for your beautiful suite of plugins.
    As stated in the previous answer to the question (https://www.ads-software.com/support/topic/change-payment-email-address/) when you go to lines 141 and 217 to change the label to, for example, the value “IBAN” the script returns exactly this value on the affiliates registration page, but when you enter an IBAN in the field, it provides an email check and returns an error message such as: Enter a valid email address for Paypal payments.

    How can this be resolved?

    Thank you

    • This topic was modified 3 years, 11 months ago by riccardocrosa.
    • This topic was modified 3 years, 11 months ago by riccardocrosa.
Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    hope you are doing well! ??

    Please, try to add this custom code in the functions.php of your active theme:

    add_filter( 'yith_wcaf_is_payment_email', '__return_true' );
    
    if( defined( 'YITH_WCAF' ) && ! function_exists( 'yith_wcaf_change_payment_email_sanitization' ) ){
     function yith_wcaf_change_payment_email_sanitization( $sanitize_email, $original_email ){
     return $original_email;
     }
       add_filter( 'yith_wcaf_sanitized_payment_email', 'yith_wcaf_change_payment_email_sanitization', 10, 2 );
    }

    Let us know.

    Have a great day!

Viewing 1 replies (of 1 total)
  • The topic ‘Change “payment email address” 2’ is closed to new replies.