Okay
  Public Ticket #2893907
some shipping methods not in B2bKing
Closed

Comments

  •  1
    Greg started the conversation

    My B2BKing groups only show the shipping methods for the USA zone.  I have USPS and Fedex that are not part of the zone but are global shipping methods.  Is it possible to get B2BKing to show and allow those to be shown?

  •  2,218
    WebWizards replied

    Hi Greg,

    Some thoughts:


    1) Do you need different shipping methods for different groups? In other words, do you need B2BKing to control this?

    If not, you can simply disable this B2BKing function, and all methods will show as they would normally. To do that:

    Go to B2BKing->Settings->Other-> scroll down to Advanced:Endpoints&Components->Components and activate "Disable shipping methods control".

    image-10-1024x505.png


    2) If you do indeed need B2BKing to control methods by group, you can add the following PHP snippet to the site:

    add_filter('b2bking_use_zone_shipping_control', function($val){
        return false;
    }, 10, 1);
    

    This will make B2BKing use a different shipping control method that is not zone-based. You can try to then go to B2BKing -> Groups and check whether you can now see methods such as USPS/Fedex.

    For this snippet to work, you need to have version 3.8.6 or higher (Was added in 3.8.6).


    Kind regards,

    Stefan