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 3 reply threads
  • Author
    Posts
    • #40000
      johan
      Participant

      Hi, I have asked this before without it being solved.

      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. I have added it to my child theme as I do with all the other snippets but still not working. See Attachment. Please advise if I am doing something wrong.

      —————-
      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

      Attachments:
      You must be logged in to view attached files.
    • #40011
      WCFM Forum
      Keymaster

      Hi,

      That code is absolutely fine, but when you copy-past that, it causing “single quote” problem.

      Delete that and add this one ->

      function wcfmmp_custom_hide_local_pickup_vendor( $methods ) {
      	if( isset( $methods['local_pickup'] ) ) unset($methods['local_pickup']);
      	return $methods;
      }
      add_filter( 'vendor_shipping_methods', 'wcfmmp_custom_hide_local_pickup_vendor' );

      Thank You

    • #40068
      johan
      Participant

      Many Thanks!

    • #40080
      WCFM Forum
      Keymaster

      You are welcome 🙂

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