Support » Plugin: WP-Members Membership Plugin » Woo-commerce checkout field editor

  • Magicways

    (@akash-khurana)


    Hello,

    We use woocomerce checkout field editor to remove mandatory fields. With your recent update we get error that this field is mandatory even its disabled in checkout field editor.
    If i deactivate your plugin or use previous version everything works fine.
    Please fix this issue in recent version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Thanks for reporting this. I’ll look into it. Until then, you’ll need to roll back to the previous version.

    Same here. Will you be able to correct it soon?
    Thank you.

    Plugin Author Chad Butler

    (@cbutlerjr)

    I’ll be releasing version 3.3.4.2 today which has a potential fix for some uses of checkout field plugins.

    Re-reading your description though, I’m not sure it will address your specific issue. It sounds like you have some fields that are both in WP-Members and in the checkout field editor? But that you don’t want them in the checkout?

    If that’s the case, this won’t solve that. However, in a larger update (possibly 3.3.5, but it will depend on other things), I would like to add the option of adding/removing any fields in the WP-Members Fields tab to/from the WC checkout.

    In the meantime, the wpmem_fields filter can be used to remove (or add) fields to the WP-Members fields array. You could use that along with WC’s is_checkout() conditional function to just dump some or all WP-Members fields from the checkout:

    add_filter( 'wpmem_fields', function( $fields ) {
    	if ( is_checkout() ) {
    		$fields = array();
    	}
    	return $fields;
    });

    That would dump all WP-Members fields from the checkout, but you could apply some additional logic and identify which you want to specifically remove or leave as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woo-commerce checkout field editor’ is closed to new replies.