Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Hide fields in payment method
- This topic has 12 replies, 2 voices, and was last updated 6 years, 3 months ago by WCFM Forum.
- AuthorPosts
- December 27, 2017 at 1:39 pm #17249
- December 28, 2017 at 6:08 am #17286WCFM ForumKeymaster
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
- December 28, 2017 at 7:31 am #17290aw_alphaParticipantThis reply has been marked as private.
- December 28, 2017 at 7:55 am #17291WCFM ForumKeymaster
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
- December 28, 2017 at 11:12 am #17310aw_alphaParticipantThis reply has been marked as private.
- December 29, 2017 at 5:49 am #17329WCFM ForumKeymaster
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
- December 29, 2017 at 6:48 am #17331aw_alphaParticipantThis reply has been marked as private.
- December 29, 2017 at 7:00 am #17333WCFM ForumKeymaster
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 - December 29, 2017 at 7:16 am #17334aw_alphaParticipantThis reply has been marked as private.
- December 29, 2017 at 7:22 am #17336WCFM ForumKeymaster
HI,
That’s strange!
What is your WCFM plugin version? I think it’s quite old.
Please update and take a look.
Thank You
- December 29, 2017 at 7:26 am #17337WCFM ForumKeymaster
If you have any caching then also refresh that once.
- December 29, 2017 at 10:41 am #17338aw_alphaParticipantThis reply has been marked as private.
- December 29, 2017 at 7:13 pm #17345WCFM ForumKeymaster
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
- AuthorPosts
- The topic ‘Hide fields in payment method’ is closed to new replies.