How to Enable or Disable Payment and Shipping Methods Based on Users or Groups

B2BKing lets you control which shipping and payment methods are available to specific groups and individual users.

Control Methods by Group / User Category #

To do this, the first step is to go to B2BKing->Groups:

B2BKing Groups Panel

Here you can control the available methods for three categories of users:

  • B2B Users (by B2B Group)
  • B2C Users
  • Logged-Out Users

Control Methods for B2B #

After clicking on "Business Groups", you can go to each user group and set the payment and shipping methods for that group.

Example: Business Group Panel for the "Factories" Group

Simply check or uncheck the desired options for the specific business group, then click "Update" to save your settings.

Control Methods for B2C & Logged-Out Users #

If you click on "Logged Out Users" or "B2C Users," you will see a panel like the following:

B2BKing B2C Users Group Panel

You can check or uncheck options, and when you are done, click "Save Settings."

Note: Methods for B2C and logged-out users must be configured separately! B2C settings do NOT apply to logged-out users.

Set Methods Individually for Each User #

You can also configure shipping and payment methods for each customer individually. To do this, go to their user profile page and choose "Manual setting" from the shipping and payment methods dropdown.

Then you can enable or disable methods for that specific user:

Shipping and Payment Methods Control for Each User

Common Issues #

Shipping Method Not Visible in B2BKing -> Groups #

If you're not able to see your shipping method in B2BKing -> Groups, it's probably because it uses a non-standard implementation mechanism (meaning it's not visible as a standard method in WooCommerce -> Settings -> Shipping).

You can try adding the following PHP snippet to your site to see if it resolves the issue:

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

The snippet above changes the shipping control mechanism used by B2BKing from a zone-based mechanism to a non-zone mechanism, making different methods available. This may help if your shipping method is not added to a particular zone.

Incorrect Zones Configuration #

It is important to note that shipping zones cannot be separate for B2B and B2C — only the shipping methods within a zone can be.

Therefore, the following is an INCORRECT configuration:

This is because in WooCommerce, a customer only matches a single zone based on their geographic location.

Therefore, zones should only handle the geographic locations. To configure different shipping methods, you need to go inside each zone and set up different B2B / B2C methods within that zone.

Additional Information #

The following article also contains important information relevant to configuring different shipping costs for B2B and B2C.

Set Different Shipping Costs for B2B and B2C

Note: B2BKing works with any WooCommerce payment gateway and any shipping method.

Powered by BetterDocs