• Resolved evaldash

    (@evaldash)


    Hi, I’m using this plugin in my site, however there is an issue. I don’t need any of the provided shipment providers, only my custom ones. Is there a way to disable the default shipping providers? If not, could it be implemented? Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,
    You can remove them by adding below PHP snippet:

    add_filter( 'woo_orders_tracking_settings-shipping_carriers_define_list', function ( $carriers ) {
    	return '[]';
    } );

    Best regards

    Thread Starter evaldash

    (@evaldash)

    Hi again, the snippet you provided doesn’t seem to work? I added it to my site, but I can still see the default shipping carriers both in the menu list, and woocommerce editing list… In fact, I don’t see a hook with such a name in the plugin code at all…

    Sorry, the above snippet works for the premium version.
    Please use below one:

    add_filter( 'woo_orders_tracking_defined_shipping_carriers', function ( $carriers ) {
    	return array();
    } );
    Thread Starter evaldash

    (@evaldash)

    Thank you, I can see that the carriers are hidden in the admin list now. However, they aren’t hidden for my client in the Woocommerce order editing area, which is what I wanted. Is there a way to hide them there too?

    I tested and they are hidden on both pages you mention. Please reload the order page.

    Thread Starter evaldash

    (@evaldash)

    I don’t know why, but they’re not hidden in the order editing area on my end… They’re only hidden in the plugin admin area.

    Here’s what I mean:
    The carriers are hidden here:

    View post on imgur.com

    But they’re not hidden here:

    View post on imgur.com

    How did you add the snippet?

    Thread Starter evaldash

    (@evaldash)

    I added it to my functions.php file.

    Well I know why, the bug is in the plugin.
    Just release a new version including the fix, please update it.
    Best regards

    Thread Starter evaldash

    (@evaldash)

    Thank you very much, now it’s working as expected! ?? Thank you for the awesome support! ??

    @foxpc I have archived your comment here, since you’re trying to hi-jack somebody else’s thread with your own questions. Please start a new topic instead. If your questions are about the same plugin, then go to https://www.ads-software.com/support/plugin/woo-orders-tracking/ and fill out the “new post” form near the bottom of the page.

    Since the original topic seems to have been resolved, I’m now closing this thread.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Hide uneeded shipping carriers’ is closed to new replies.