Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Just one delivery boy for all vendors
- This topic has 3 replies, 2 voices, and was last updated 4 years, 7 months ago by WCFM Forum.
Viewing 3 reply threads
- AuthorPosts
- March 27, 2020 at 7:19 am #113427HERMES ALVES SOUZAParticipant
Hi,
How can i configure one delivery boy for work for all vendors stores?
I have a delivery center for the all stores.
- April 4, 2020 at 12:27 pm #115236WCFM ForumMember
Hi,
Please add this snippet to your site, hence all vendors will able to see all delivery persons =
add_filter( 'wcfmd_get_delivery_boys_args', function( $delivery_boys_args ) { if( wcfm_is_vendor() ) { if( isset( $delivery_boys_args['meta_key'] ) ) unset( $delivery_boys_args['meta_key'] ); if( isset( $delivery_boys_args['meta_value'] ) ) unset( $delivery_boys_args['meta_value'] ); } return $delivery_boys_args; }, 50 );
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
- April 4, 2020 at 8:17 pm #115377HERMES ALVES SOUZAParticipant
Thanks, it’s works.
- April 5, 2020 at 11:15 am #115558WCFM ForumMember
Glad to hear 🙂
- AuthorPosts
Viewing 3 reply threads
- You must be logged in to reply to this topic.