• New unexpected fields just showed up at the bottom of the registration form on my Affiliate Dashboard page. They are required First Name and Last Name fields. There’s also another label for a second “Last Name” field, but there isn’t a field to go with it.

    When I inspect the code, I see that they are WooCommerce elements. I just updated to the latest version of the WooCommerce Admin plugin, so I suspect that might have something to do with it.

    Is there any way to get rid of these unexpected fields and restore the form to what it should be?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    hope you are doing well! ??

    Is it also happening with another default theme like Twenty Twenty?
    Please, try to do the change and check if same happens.

    Let us know.

    Have a great day!

    Thread Starter bnjewell

    (@bnjewell)

    Yes, I just created a staging site and switched to the Twenty Twenty theme. The problem persists —?see screenshot: https://snipboard.io/mndTEL.jpg

    Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    hope you are doing well! ??

    Could you check if by adding the next code to the functions.php file of your active theme these fields are removed from the affiliate registration form, please?

    if ( ! function_exists( 'yith_wcaf_enqueue_scripts_custom' ) ) {
    	function yith_wcaf_enqueue_scripts_custom() {
    		$jquery = 'jQuery(document).ready(function($){
    			$("div.yith-wcaf.yith-wcaf-registration-form p.woocommerce-FormRow.woocommerce-FormRow--wide").remove();
    		});';
    
    		wp_add_inline_script( 'yith-wcaf', $jquery );
    	}
    
    	add_action( 'wp_enqueue_scripts', 'yith_wcaf_enqueue_scripts_custom', 999 );
    }

    Let us know any news, please.

    Have a great day!

    Thread Starter bnjewell

    (@bnjewell)

    Yes, I tried that code on a staging site and it worked. Do I need to add this code to the child theme on my production site? Or should I expect this fix in an upcoming release of the plugin?

    Thanks,
    Brian

    Plugin Author YITHEMES

    (@yithemes)

    Hello Brian,

    hope you are doing well! ??

    Yes. You should keep this code in your theme, also in your production site, since it’s a specific workaround created for you.

    Let us know any news, please.

    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Affiliate Registration Form — Unexpected Fields’ is closed to new replies.