Okay
  Public Ticket #3835796
Shipping issue
Closed

Comments

  •  7
    cgnumerik started the conversation

    Hello, 

    I'm having a problem on the site with the delivery choices by group

    We have created a ‘free’ delivery method that we would like to apply to all our resellers (our B2B customers) and which simply displays ‘subsequent delivery calculation’. 

    For B2B customers, we've created delivery tables and assigned these delivery methods to B2B users and guests in the B2BKing configuration.

    If we put deliveries for professionals at the top of the delivery tables, this works for B2B customers, BUT it also applies to guests and B2C customers.

    If we put the delivery for professionals at the bottom of the list of tables, it doesn't work at all for B2B customers (we get the message ‘no delivery solution available’), but individuals and guests work fine. 

    AND if I change the delivery country in the order (when the account has FRANCE for example) in this case, my ‘subsequent calculation’ delivery method is displayed.

    I can give you access to the backoffice to see what's happening if you like

  •   cgnumerik replied privately
  •  2,361
    WebWizards replied

    Hi there,

    I checked this now on the site,

     

    There is an issue in the configuration of the shipping zones at https://dev.secdem.fr/wp-admin/admin.php?page=wc-settings&tab=shipping

    It is not possible to have a zone that is B2B or B2C. Only the shipping methods inside each zone can be B2B or B2C. 

    Therefore to solve this, follow these steps:

    (1) Delete your zone "Professionnels et distributeurs"

    (2) Inside each zone you have, create a special B2B method for "calcul ulterieur" (each zone will have its own b2b and b2c options).

    (3) Now you can go to B2BKing -> Groups and enable / disable each method based on B2B/B2C.

     

     

    The reason it works like this is because WooCommerce only matches a customer to 1 zone: the first zone that matches the address from top to bottom.

    9787459854.png

    This is a common problem in WooCommerce shipping configuration, you can read more about it here https://aceplugins.com/woocommerce-how-it-works-shipping-zones/#only-the-first-matching-zone

    Basically it means it's never possible to have 2 zones that cover the same region / address. If you have, the second zone is never used, always ignored.

     

    Kind regards,

    Stefan

  •  7
    cgnumerik replied

    Thanks a lot :) It's perfect :)