Hide fields in payment method

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 12 reply threads
  • Author
    Posts
    • #17249
      aw_alpha
      Participant

      Hi, is there anyway to hide those fields as list in screenshot?
      Payment – Payment method – Online bank transfer

      Thanks.

      Attachments:
      You must be logged in to view attached files.
    • #17286
      WCFM Forum
      Keymaster

      Hi,

      Yes you can manage available payment methods for your vendors.

      Go to wp-admin -> WCMp -> Settings -> Payment -> here you can manage everything

      Please go through these settings once and know me is this resolved your requirement or not!

      Thank You

    • #17290
      aw_alpha
      Participant
      This reply has been marked as private.
    • #17291
      WCFM Forum
      Keymaster

      Yeah right, you can’t manipulate fields from there.

      You may use CSS, but it will be better to do using this “wcfm_wcmarketplace_settings_fields_billing” filter. Just remove unnecessary fields from array.

      Thank You

    • #17310
      aw_alpha
      Participant
      This reply has been marked as private.
    • #17329
      WCFM Forum
      Keymaster

      Hi,

      This is a simple filter, no such documentation on this.

      Please know me which fields you want to hide, I will send you code for that.
      Hope you may just add that in your child theme’s functions.php?

      Thank You

    • #17331
      aw_alpha
      Participant
      This reply has been marked as private.
    • #17333
      WCFM Forum
      Keymaster

      Hi,

      Here is your custom code –

      function wcfm_wcmarketplace_settings_fields_billing_custom( $billing_fields ) {
      	
      	if( isset( $billing_fields['_vendor_aba_routing_number'] ) ) {
      		$billing_fields['_vendor_aba_routing_number']['class'] = 'wcfm_custom_hide';
      		$billing_fields['_vendor_aba_routing_number']['label_class'] = 'wcfm_custom_hide';
      	}
      	
      	if( isset( $billing_fields['_vendor_bank_address'] ) ) {
      		$billing_fields['_vendor_bank_address']['class'] = 'wcfm_custom_hide';
      		$billing_fields['_vendor_bank_address']['label_class'] = 'wcfm_custom_hide';
      	}
      	
      	if( isset( $billing_fields['_vendor_destination_currency'] ) ) {
      		$billing_fields['_vendor_destination_currency']['class'] = 'wcfm_custom_hide';
      		$billing_fields['_vendor_destination_currency']['label_class'] = 'wcfm_custom_hide';
      	}
      	
      	if( isset( $billing_fields['_vendor_iban'] ) ) {
      		$billing_fields['_vendor_iban']['class'] = 'wcfm_custom_hide';
      		$billing_fields['_vendor_iban']['label_class'] = 'wcfm_custom_hide';
      	}
      	
      	return $billing_fields;
      }
      add_filter( 'wcfm_wcmarketplace_settings_fields_billing', 'wcfm_wcmarketplace_settings_fields_billing_custom', 50 );

      Just add this in your child theme’s functions.php

      Please know me is this works for you or not!

      Thank You
      Simha

    • #17334
      aw_alpha
      Participant
      This reply has been marked as private.
    • #17336
      WCFM Forum
      Keymaster

      HI,

      That’s strange!

      What is your WCFM plugin version? I think it’s quite old.

      Please update and take a look.

      Thank You

    • #17337
      WCFM Forum
      Keymaster

      If you have any caching then also refresh that once.

    • #17338
      aw_alpha
      Participant
      This reply has been marked as private.
    • #17345
      WCFM Forum
      Keymaster

      Ok, that’s fine as well.
      Actually, my code was for same, hide using CSS but with standard WCFM classes.
      A bit strange for me, why it’s not working for you!

      Please know me if I can help you some other way.

      Really thanks for your cooperation.

      Simha

Viewing 12 reply threads
  • The topic ‘Hide fields in payment method’ is closed to new replies.