Just one delivery boy for all vendors

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!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace Just one delivery boy for all vendors

Tagged: ,

Viewing 3 reply threads
  • Author
    Posts
    • #113427
      HERMES ALVES SOUZA
      Participant

      Hi,

      How can i configure one delivery boy for work for all vendors stores?

      I have a delivery center for the all stores.

    • #115236
      WCFM Forum
      Keymaster

      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

    • #115377
      HERMES ALVES SOUZA
      Participant

      Thanks, it’s works.

    • #115558
      WCFM Forum
      Keymaster

      Glad to hear 🙂

Viewing 3 reply threads
  • You must be logged in to reply to this topic.