• Resolved mkwenzel

    (@mkwenzel)


    Hey there, a client has an issue where they don’t want to ship anything from their shipping class ‘wetsuits’ overseas but they do want to allow orders for swimwear. I’ve set up a flat rate shipping method for ‘Locations not covered by your other zones’ in which the wetsuits shipping class hasn’t been given a price but the swimwear shipping class has. This works if the user only orders a wetsuit or swimwear but if you try and order a wetsuit and swimwear it charges the flat rate for the swimwear and allows the order to go through. Is there a setting I’m missing here or another way to achieve what we’re looking for? Thanks.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @mkwenzel!

    If you want to prevent international orders from going through with a ‘mixed’ cart, you need to set it up like this:

    Locations not covered by your other zones:
    Flat Rate Method in the zone (needs to be the only option):
    Cost: Leave this field blank
    Swimwear Shipping Class: Enter cost for that class here
    Wetsuit Shipping Class: Leave this field blank
    No shipping class cost: Leave this field blank
    Calculation type: Charge for each shipping class individually

    Charging for each class will mean that no rate can be calculated for wetsuits and prevent that method from being offered.

    Thread Starter mkwenzel

    (@mkwenzel)

    Hey Shaun,

    Thanks so much for the quick response. Unfortunately this is exactly how I have had it set up and it’s still applying the Swimwear flat price to any mixed orders.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @mkwenzel,

    Can you take a screenshot of the Flat Rate settings and share the link here? If you would like a recommendation, https://snipboard.io/ is a quick and easy way to share screenshots via links (no account needed, etc). Thanks!

    Thread Starter mkwenzel

    (@mkwenzel)

    Hi there, screenshot link below. Let me know if there’s anything I need to change here.

    Thanks.

    https://snipboard.io/xnHCRo.jpg

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @mkwenzel – I could have sworn that the approach I mentioned used to work, but I just tested it with both WC 4.0.1 and WC 3.9.3 and it does calculate rates if a cost is only added for one shipping class- skipping the other, rather than causing no rates to be offered.

    Because of this, the Flat Rate method in core isn’t able to achieve this on its own. You’ll either need a different flat rate plugin (like Table Rate Shipping, that has an “Abort” option if a certain class is in the cart) or a conditional shipping plugin that can exclude the flat rate method when that condition is met, thus returning the ‘No shipping methods available’ message.

    Sorry for the confusion! >_<

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Prevent international shipping for a shipping class’ is closed to new replies.