Support » Plugin: WooCommerce » Free Local Delivery Zone plus Non-free Country zone

  • Resolved wynterblathwayt

    (@wynterblathwayt)


    Hi – Im new to the complexities of setting different rates for different zones so apologies in advance.
    I have a store that sells two types of products
    Product class A: Can only be delivered free to local postcodes (fresh produce)
    Product class B: Can be delivered anywhere in the UK (flat rate charge)

    If the customer puts in their address and the postcode isn’t from the allowed local postcode zone Ive set up, I’d like the checkout to show a warning saying – Your cart contains products that can only be delivered to local postcode.

    I have 2 Shipping Zones set up – 1 for Free Delivery CB6 postcodes and 1 for UK Shipping

    I have 2 shipping classes set up – 1 for Free Delivery CB6 postcodes and 1 for UK Delivery

    I have 2 products set up – one with the Class selected as Free Delivery CB6 and one with the Shipping class for UK delivery

    If I add both products to the checkout and add a non Free Delivery CB6 postcode it shows the flat rate charge rather than an error.

    I know it’s possible, but I just can’t seem to get my settings right – would love a steer from someone if possible?

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

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @wynterblathwayt,

    It sounds like what you are describing is related to the following bug report I opened recently:

    https://github.com/woocommerce/woocommerce/issues/27030

    You can click the “Subscribe” button on that issue if you’d like to get updates on it.

    However, in the meantime, if you use something like Table Rate Shipping, you can set an ‘Abort’ condition for the carts that you don’t want to allow rates for- and our Table Rate Shipping plugin allows you to customize the message that displays when the abort condition is triggered- so you can easily specify that “Your cart contains products that can only be delivered to local postcode.” message.

    Cheers Shaun – that all looks very familiar – I’ll read through but I think you are right – Im actually a bit relieved – its my first crack at anything more complicated than flat rate, so its been a real headscratcher!

    Plugin Support Shaun Kuschel

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @wynterblathwayt,

    Yeah- You aren’t alone, but once that Github issue has a solution, I think I can help point you in the right direction to achieve this- if you’d like any additional thoughts at that point. πŸ™‚

    That would be brilliant. Thanks.

    Plugin Support Shaun Kuschel

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @wynterblathwayt,

    Sure thing! I’m following that Github issue and plan on creating a post here on the forums and tagging everyone that I’ve seen mention it, so I’ll add you to that list as well (once I’ve tested that it works, how I set it up, etc).

    I’m going to mark this thread as resolved for now, but keep an eye out for the mention/tag in a future post from me. πŸ™‚

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.