Hiding Local Pickup on Vendor shipping options

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 Hiding Local Pickup on Vendor shipping options

Viewing 4 reply threads
  • Author
    Posts
    • #35388
      johan
      Participant

      Hi, I would like to hide the ‘Local Pickup’option on the Vendors Dashboard. I found the snippet below but it seem not to work. Can you please advise.

      —————-
      function wcfmmp_custom_hide_local_pickup_vendor($methods) {
      unset($methods[‘local_pickup’]);
      return $methods;
      }
      add_filter( ‘vendor_shipping_methods’, ‘wcfmmp_custom_hide_local_pickup_vendor’ );

      —————

      Regards,
      Jay

    • #35395

      Hello,

      The above code should work fine to remove the local_pickup option for the vendor. Have you added the code in child theme’s function.php file or anywhere else?

      Thank You.

    • #35508
      johan
      Participant

      Hi, yes. I have added to the child theme function.php. I will try again and let you know.

      Ta
      Jay

    • #35556
      johan
      Participant
      This reply has been marked as private.
    • #36397
      johan
      Participant

      Hi, any advice on this issue?

      Regards,
      Johan

Viewing 4 reply threads
  • The topic ‘Hiding Local Pickup on Vendor shipping options’ is closed to new replies.