Support » Plugin: WooCommerce » The correct shipping class is not used for product orders

  • Resolved schmidtsodingen

    (@schmidtsodingen)


    Hello,
    I have a question about shipping classes in WooCommerce.
    I have created the shipping zone Germany and assigned 6 shipping methods or shipping classes to it. These are proportional to the weight of the products – the 1st class is for products up to 1 kg weight, the 6th class up to 31.5 kg.
    Afterwards I have selected for each of the shipping methods the option “Per order: Shipping costs correspond to the most expensive shipping class of the order” by the select button “Calculation method”.
    Then I assigned one of the shipping classes to each product.

    And now the problem: No matter what I order for testing purposes: Only shipping class 1 (up to 1 kg) is selected, i.e. this appears in the shopping basket.

    Where might the mistake be? I would be grateful for feedback.

    Best regards

    J. Schmidt-Sodingen

    ****

    Guten Tag,
    ich habe eine Frage zum Thema Versandklassen in WooCommerce.
    Ich habe die Versandzone Deutschland angelegt und dieser 6 Versandarten bzw. Versandklassen zugeordnet. Diese stehen im Verhältnis zum Gewicht der Produkte – die 1. Klasse ist für Produkte bis 1 kg Gewicht, die 6. Klasse bis 31,5 kg.
    Anschließend habe ich bei jeder der Versandarten bei “Berechnungsart” die Option “Pro Bestellung: Versandkosten entsprechen der teuersten Versandklasse der Bestellung” gewählt.
    Dann habe ich jedem Produkt eine der Versandklassen zugeordnet.

    Und nun das Problem: Egal, was ich testweise bestelle: Es wird immer nur auf die Versandklasse 1 (bis 1 kg) zugegriffen, d.h. diese erscheint im Warenkorb.

    Wo mag der Fehler liegen? Für Feedback wäre ich dankbar.

    Viele Grüße

    J. Schmidt-Sodingen

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Shane Eckert

    (@shaneeckert)

    Automattic Happiness Engineer

    Hi!

    It’s a little hard to know what’s going on without seeing it, but it sounds like you may be matching on a zone and that’s the method that is shown.

    Shipping classes are good for organizing shipping and products. And you can use the classes for some methods to create rules. But if you have zones configured and you make a match on zone, then that zone is used, regardless of the class.

    I hope that make sense.

    Thread Starter schmidtsodingen

    (@schmidtsodingen)

    Hi Shane Eckert,

    thank you very much for your support!

    Regarding the zones: By now I have created only 2 zones: Germany (where our company is located) and the rest of the world. Perhaps I will go in detail for foreign regions later. The different shipping classes are only prepared for shipping in Germany. For all other states I have chosen a fixed price. For localizing the customer I have chosen the option “geolocalization” – and it works – for Germany at least. I did not have the opportunity to check it for other states by now.

    If I choose a product and add it to the shopping cart, the message “Customer matched zone “Deutschland”” appears and the different shipping classes for Germany are shown as options to choose between and the first (4,50 €) is marked automatically (but others can be chosen alternatively). The problem is that they should not appear as options, but only one at a time – the one assigned to the product.

    Coming back to your proposal: Could it make sense to delete the zone Germany and only use one zone for the whole world (with the different shipping classes subordinated)? I’m afraid the same phenomenon would occur, but then for all states, wouldn’t it?

    Best,
    Juliane

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey again!

    I think that a screenshot of the shipping method you have set up would be beneficial, can you send one? You can use something like http://snag.gy to send.

    Thread Starter schmidtsodingen

    (@schmidtsodingen)

    Hi Andrew,
    thank you very much for your support.
    I have made some screenshots:

    https://snag.gy/kdJbze.jpg
    Here you can see the two shipping zones: Germany (where our company is located) and the rest of the world.

    https://snag.gy/zr9YBt.jpg
    Here you can see the different shipping classes for shipping in Germany.

    https://snag.gy/8AIDqx.jpg
    These are the details for the shipping class “up to 1 kg

    https://snag.gy/Dpi4OE.jpg
    These are the details for the shipping class “up to 2 kg

    https://snag.gy/0MfkOC.jpg
    This is a product for which the shipping class “up to 5 kg” has been chosen

    https://snag.gy/M8V6JS.jpg
    Here you can see the product on the website and you can see the green remark “Customer matched zone Deutschland” which is correct.

    https://snag.gy/2dwb7A.jpg
    And here you can see the product in the shopping cart.
    Unfortunately the shipping class “up to 5 kg” is not chosen. Instead of this the different shipping classes for Germany are shown as options to choose between and the first (4,50 €) is marked automatically (but others can be chosen alternatively). The problem is that they should not appear as options, but only one at a time – the one assigned to the product.

    Best,
    Juliane

    Plugin Support Yuki K. a11n

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi @schmidtsodingen,

    Thank you for those screenshots. That really helps understand how your shipping is set up. One of the issues is that you refer to each shipping METHOD as a shipping CLASS. And based on your screenshot here, https://snag.gy/zr9YBt.jpg, these should be referenced as methods, not classes. This seems to be the confusion in setting up how you want it to be.

    Shipping CLASSES are used to tie a shipping method with a specific product. I see that you have created shipping classes, but none of them have a price assigned to it. You will also need to go into each product and assign it a shipping class.

    So this is what your setup should look like:

    Only have one flat rate option in Germany:


    Link to image: http://cld.wthms.co/WJrqKA

    For each shipping class, add the necessary flat rate:


    Link to image: http://cld.wthms.co/qqxxZf

    Go to your product and assign a shipping class. That way it knows that if it’s a 1kg shipping class, it will only show the 4.50:


    Link to image: http://cld.wthms.co/NNHTL2

    Hope that helps!

    Thread Starter schmidtsodingen

    (@schmidtsodingen)

    Hello yukikatayama,

    thank you so much for your and your colleagues help!
    Now it works!!

    Best,
    Juliane

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘The correct shipping class is not used for product orders’ is closed to new replies.