disable refund en cancellation by policies

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 1 reply thread
  • Author
    Posts
    • #88110
      M Max
      Participant

      The vendor MAY NOT fill in the Refund Policy AND Cancellation/Return/Exchange Policy.
      We ADMIN make one policy for all vendors.

      How can we disable these two options for the vendors. But the vendor MAY enter the shipping policy option.

    • #88477
      WCFM Forum
      Keymaster

      Hi,

      Kindly add this code to your site –

      add_filter( 'wcfm_vendor_settings_fields_policies', function( $policy_fields, $user_id ) {
      	$policy_fields = wcfm_hide_field( 'wcfm_policy_tab_title', $policy_fields );
      	if( isset( $policy_fields['wcfm_refund_policy'] ) ) {
      		unset( $policy_fields['wcfm_refund_policy'] );
      	}
      	if( isset( $policy_fields['wcfm_cancellation_policy'] ) ) {
      		unset( $policy_fields['wcfm_cancellation_policy'] );
      	}
      	return $policy_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://wordpress.org/plugins/code-snippets/

      Thank You

Viewing 1 reply thread
  • The topic ‘disable refund en cancellation by policies’ is closed to new replies.