Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › disable refund en cancellation by policies
- This topic has 1 reply, 2 voices, and was last updated 5 years ago by WCFM Forum.
Viewing 1 reply thread
- AuthorPosts
- October 21, 2019 at 9:07 pm #88110M MaxParticipant
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.
- October 23, 2019 at 12:34 pm #88477WCFM ForumMember
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
- AuthorPosts
Viewing 1 reply thread
- The topic ‘disable refund en cancellation by policies’ is closed to new replies.