• Resolved yergomezz

    (@yergomezz)


    Good afternoon, in my store [ redundant link deleted ] I sell to all Spain. My shipping areas are as follows:

    • For the provinces of Madrid and Toledo shipping is free.
    • For the rest of Spain it costs 4,99€.

    The thing is that I have received an order that was going to Algeciras (Andalucia), and has not been charged shipping. The shipping has not been charged, because, although I have put the postal code of Andalucia, in the province dropdown had put “Toledo”.
    So my question is, what is the most valid in Woocommerce to detect the shipping zones? I thought that the shipment was based on the zip code, but it seems that it does according to the data you put in the drop-down province.

    Can you help me?

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

Viewing 1 replies (of 1 total)
  • Hi @yergomezz

    Thanks for explaining the situation clearly! Could you try these solutions I set up on my test site (with screenshots)?

    1. Set up a shipping zone for Spain by selecting “Spain” from the country list. Add a flat rate shipping method, and it should look like this: https://snipboard.io/403nWV.jpg
    2. Next, create another shipping zone just for Madrid and Toledo, choose Spain (like above) then click “limit to specific zip/postcodes.” Use the free shipping method, then add the postcode ranges for Madrid and Toledo like this: https://snipboard.io/MAhqj9.jpg. (please double check if my postcodes are correct).
    3. Finally, go back to the list of shipping zones and make sure Madrid and Toledo are placed above Spain, like in this example: https://snipboard.io/mjgSiB.jpg. This will make sure that WooCommerce checks if the customer is from Madrid and Toledo FIRST before it goes to the next zone (all of Spain).

    On the checkout form, the trigger would be when the customer inputs their postcode.

    So my question is, what is the most valid in Woocommerce to detect the shipping zones? I thought that the shipment was based on the zip code, but it seems that it does according to the data you put in the drop-down province.

    To answer your question, it depends on how your zones are set up. In my suggestion, it’s based on postcode ranges for Madrid and Toledo. The order of the shipping zones matters, so make sure the one at the top of the list gets priority. If the first condition isn’t met (example: Not from Toledo), it will move to the next zone, and so on.

    Test it again after setting it up and let us know how it goes. 🙂

Viewing 1 replies (of 1 total)

The topic ‘Error in shipping costs’ is closed to new replies.