• Resolved arjunmurali1993

    (@arjunmurali1993)


    Hi,

    I want to remove these options from the Vendor’s Settings menu. We only want to have Profile Information (Store option in the Menu) and Payment Information (Payment option in the menu) enabled.

    Also, I want to remove Routing Number, IBAN and SWIFT Code options from the list when the vendor selects the Payment Method as Bank Transfer in their Settings panel. These fields aren’t really applicable for us and I don’t want it to confuse the vendors.

    If there’s some PHP function that can help achieve this, please do point me in the right direction.

    Thanks and Regards,
    Arjun

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Are you using WCFM Ultimate or only WCFM Free version?

    If you are using WCFM Ultimate then you disable thise easily from WCFM Capability setting.

    If no, then please let me know, will give you code snippet.

    Thank You

    Thread Starter arjunmurali1993

    (@arjunmurali1993)

    Hi,

    No I’m using the WCFM free version.

    Regards,
    Arjun

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    No issues, please add these codes to your site –

    add_filter( 'wcfm_is_allow_store_visibility', '__return_false' );
    add_filter( 'wcfm_is_allow_store_address', '__return_false' );
    add_filter( 'wcfm_is_allow_vseo_settings', '__return_false' );
    add_filter( 'wcfm_is_allow_customer_support_settings', '__return_false' );
    add_filter( 'wcfm_marketplace_settings_fields_billing_bank', function( $bank_fields, $vendor_id ) {
    		$bank_fields = wcfm_hide_field( 'routing_number', $bank_fields );
    		$bank_fields = wcfm_hide_field( 'iban', $bank_fields );
    		$bank_fields = wcfm_hide_field( 'swift', $bank_fields );
    	return $bank_fields;
    }, 50, 2 );

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin –?https://www.ads-software.com/plugins/code-snippets/

    Thank You

    Thread Starter arjunmurali1993

    (@arjunmurali1993)

    Thanks for the snippet ?? It removed the fields. If it’s not too much, could you also help me remove the Address, Social and Membership fields from the Profile page for Vendors? Also, the Membership and Social buttons at the top of the Settings page.

    Here are screenshots of the ones I would like to remove:

    View post on imgur.com

    View post on imgur.com

    Thanks and Regards,
    Arjun

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Please add these to your site –

    add_filter( 'wcfm_is_allow_address_profile', '__return_false' );
    add_filter( 'wcfm_is_allow_social_profile', '__return_false' );
    add_filter( 'wcfm_is_allow_vendor_membership', '__return_false' );

    Thank You

    Thread Starter arjunmurali1993

    (@arjunmurali1993)

    Thank you so much.

    Regards,
    Arjun

    Plugin Author WC Lovers

    (@wclovers)

    Welcome ??

    Hello support
    I have installed codesnippets.
    I am trying to hide all payment infor for the vendor
    In codesnipets there are a few examples.
    Which one do i use or do i create a new snippet
    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove Location, SEO and Customer Support from Vendor’s Settings Menu’ is closed to new replies.