Different shipping fees for certain postal code [zip code/postcode]?

  • Posts: 55
  • Thank you received: 7
  • Hikashop Multisite
1 week 2 days ago #364411

-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.2.1
-- PHP version -- : 8.2.23
-- Browser(s) name and version -- : Chrome 130.0.6723.117

Hello,

My client would like to have certain postcodes to have another fee. All of the Netherlands has €7,50 shipping fee, but for 8881-8896, 8899, 9161-9163 and 9166 it has to be €19,-
Besides that, when ordering over €100,- is free of charge. But for the areas mentioned before, the limit is free shipping for orders over €250,-

Right now, the shipping is for the whole country. Can you please give me a hint how to configure this the right way?

Thanks in advance!

Regards,

Ans

Please Log in or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
1 week 1 day ago #364413

Hi,

You want to use the "Post code RegEx" setting of your shipping methods to restrict them to different post codes.
For example with the regex:

#^(888[1-9]|889[0-6]|8899|916[1-3]|9166)$#
You'll only target the region with the more expensive shipping fee
Or the regex:
#^(?!88(8[1-9]|9[0-6]|99)|916[1-3]|9166)\d{4}$#
to target the rest

And you can use the min price / max price restrictions for the free shipping.

So, instead of one manual shipping method for the Netherlands, you'd have 4:
- one with the first regex and a min price of 250 and a price of 0
- one with the second regex and a min price of 100 and a price of 0
- one with the first regex and a max price of 249.999 and a price of 19
- one with the second regex and a max price of 99.999 and a price of 7.50

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum