Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Only allow one special payment gateway for all wcfm stores
- This topic has 3 replies, 2 voices, and was last updated 5 years, 7 months ago by WCFM Forum.
- AuthorPosts
- September 20, 2018 at 3:58 pm #32133fabelunaParticipant
Hello,
I’m planing to allow only one special payment gateway for all my WCFM-stores. To achieve this I have only this one special gateway activated in my Woocommerce settings. But in the vendor store setup/settings still appears the tab “payment” with the options “paypal” and “bank transfer” (see screenshots). I found two filters in your code to remove this tab from dashboard menu and store setup:
//remove payment tab from dashboard settings
add_filter(‘wcfm_is_allow_billing_settings’, ‘__return_false’);//remove payment step from store setup
function unset_payment_step($default_steps ) {
unset( $default_steps[‘payment’] );
return $default_steps;}
add_filter( ‘wcfmmp_store_setup_steps’, ‘unset_payment_step’, 0 );It seems to work so far, but I’m wondering if there is something else to do to allow only this one special gateway for all my wcfm stores?
Attachments:
You must be logged in to view attached files. - September 23, 2018 at 5:12 am #32305WCFM ForumKeymaster
HI,
You can remove this tab using WCFM Capability.
Thank You
- September 23, 2018 at 9:08 am #32306
- September 24, 2018 at 5:07 pm #32409WCFM ForumKeymaster
Hi,
Please check this – https://ibb.co/mzz8HU
Between, do you have WCFM Ultimate?
Otherwise you will not see this in Capability.Thank You
- AuthorPosts
- The topic ‘Only allow one special payment gateway for all wcfm stores’ is closed to new replies.