Customise Store Setup

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 6 reply threads
  • Author
    Posts
    • #40316
      andreasenglowski
      Participant

      Hi,

      i like to customise the store setup as follows:

      1. Remove fields from StoreSetup->Payment->Bank info (see Screen1):

      – Bank account number
      
- Name of bank

      – Address of bank

      – Routing number
      
- IFSC Code


      2. Polic Setup (see Screen2):
      
- Put default values to fields so vendor don’t has to write something but can edit if he wants
      – Gray out first field “Reiterbeschriftung” so you can see the default value but not change it

      Hope you can help =)

      Many thanks in advance,
      Andi

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

      Hi,

      1. Remove fields from StoreSetup->Payment->Bank info (see Screen1):

      – Bank account number
      
- Name of bank

      – Address of bank

      – Routing number
      
- IFSC Code

      – Do you want to remove these fields or want to keep these?

      2. Polic Setup (see Screen2):
      
- Put default values to fields so vendor don’t has to write something but can edit if he wants
      – Do you have setup policies as Admin?

      Thank You

    • #40366
      andreasenglowski
      Participant

      Hi,

      thanks for your fast reply. Sorry for not being clear…

      1. i want to remove these fields

      2. No not yet if i do so will they appear?

      Thanks

    • #40437
      WCFM Forum
      Keymaster

      Hi,

      1. i want to remove these fields
      – OK, I will give you code for this,

      2. No not yet if i do so will they appear?
      – Off course.

      Thank You

    • #40524
      WCFM Forum
      Keymaster

      Hi,

      Please add this code to your child theme’s functions.php

      add_filter( 'wcfm_marketplace_settings_fields_billing_bank', function( $bank_fields, $user_id ) {
      	if( isset( $bank_fields['bank_name'] ) ) {
      		$bank_fields['bank_name']['class'] = 'wcfm_custom_hide';
      		$bank_fields['bank_name']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $bank_fields['bank_addr'] ) ) {
      		$bank_fields['bank_addr']['class'] = 'wcfm_custom_hide';
      		$bank_fields['bank_addr']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $bank_fields['routing_number'] ) ) {
      		$bank_fields['routing_number']['class'] = 'wcfm_custom_hide';
      		$bank_fields['routing_number']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $bank_fields['ifsc'] ) ) {
      		$bank_fields['ifsc']['class'] = 'wcfm_custom_hide';
      		$bank_fields['ifsc']['label_class'] = 'wcfm_custom_hide';
      	}
      	return $bank_fields;
      }, 50, 2 );

      Thank You

    • #42289
      andreasenglowski
      Participant

      Thanks your very much! Sorry for late reply, been on vacation! Its working but the bank account number is still in there which i want to remove, too.

      Oh and is there a way to remove the support step from the store setup and from dashboard -> settings?

      Thanks and happy new year!

    • #42296
      WCFM Forum
      Keymaster

      Hi,

      Happy new year and have a great year ahead 🙂

      Here is your revised code –

      add_filter( 'wcfm_marketplace_settings_fields_billing_bank', function( $bank_fields, $user_id ) {
      	if( isset( $bank_fields['ac_number'] ) ) {
      		$bank_fields['ac_number']['class'] = 'wcfm_custom_hide';
      		$bank_fields['ac_number']['label_class'] = 'wcfm_custom_hide';
      	}
              if( isset( $bank_fields['bank_name'] ) ) {
      		$bank_fields['bank_name']['class'] = 'wcfm_custom_hide';
      		$bank_fields['bank_name']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $bank_fields['bank_addr'] ) ) {
      		$bank_fields['bank_addr']['class'] = 'wcfm_custom_hide';
      		$bank_fields['bank_addr']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $bank_fields['routing_number'] ) ) {
      		$bank_fields['routing_number']['class'] = 'wcfm_custom_hide';
      		$bank_fields['routing_number']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $bank_fields['ifsc'] ) ) {
      		$bank_fields['ifsc']['class'] = 'wcfm_custom_hide';
      		$bank_fields['ifsc']['label_class'] = 'wcfm_custom_hide';
      	}
      	return $bank_fields;
      }, 50, 2 );

      Set OFF “customer support” from Capability setting – https://ibb.co/CPC7tfg

      Thank You

Viewing 6 reply threads
  • The topic ‘Customise Store Setup’ is closed to new replies.