[Skip to main content](#vessel-content)

#   Radial Distance Shipping Restriction

##

- **[twhcreations](/forum/user/3186-twhcreations "View twhcreations's Profile")**
- [![twhcreations's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar3186.png)](/forum/user/3186-twhcreations "View twhcreations's Profile") Topic Author
- [ Offline](/forum/user/3186-twhcreations)

Less More

- Posts: 127
- Thank you received: 8
-
-
- [](http://www.webtechplus.com.au)
-

10 years 7 months ago [\#236464](#236464) by [twhcreations](/forum/user/3186-twhcreations "View twhcreations's Profile")  *[Radial Distance Shipping Restriction](/forum/28-shipping-methods/883826-radial-distance-shipping-restriction#236464 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6.19 -- Browser(s) name and version -- : IE, Firefox, Chrome  We have a Florist who is using a local courier who will only deliver within a set radius of 25km Is there any way we can do this within the system? The current restriction by postcode range does not really work well for us as the placement of the postcodes is not logical and pretty random.")* was created by *[twhcreations](/forum/user/3186-twhcreations "View twhcreations's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6.19
-- Browser(s) name and version -- : IE, Firefox, Chrome

We have a Florist who is using a local courier who will only deliver within a set radius of 25km
Is there any way we can do this within the system?
The current restriction by postcode range does not really work well for us as the placement of the postcodes is not logical and pretty random.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvODgzODI2LXJhZGlhbC1kaXN0YW5jZS1zaGlwcGluZy1yZXN0cmljdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 7 months ago [\#236490](#236490) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Radial Distance Shipping Restriction](/forum/28-shipping-methods/883826-radial-distance-shipping-restriction#236490 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6.19 -- Browser(s) name and version -- : IE, Firefox, Chrome  We have a Florist who is using a local courier who will only deliver within a set radius of 25km Is there any way we can do this within the system? The current restriction by postcode range does not really work well for us as the placement of the postcodes is not logical and pretty random.")*

Hi,

If post codes ranges limitations don't work for that case, the only option left is to have the shipping plugin geolocation the address with a specific API, like google's:
[ developers.google.com/maps/documentation...o#GeocodingResponses](https://developers.google.com/maps/documentation/geocoding/intro#GeocodingResponses)
Then, when the plugin get the latitude and longitude of the address, it does some math to calculate whether the point is in that 25km radius around the shop's latitude/longitude point.
So it will require the development of a shipping plugin.
Basically, a copy of the manual shipping plugin, which just three options added for the longitude/latitude/radius values of the store, and the implementation of the onShippingDisplay function where the gelocation API would be called, the math done, and the shipping methods from $methods array would be filtered if matching or not and if so, added to the $usable_methods array.
[ www.hikashop.com/support/documentation/6...ml#onShippingDisplay](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onShippingDisplay)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvODgzODI2LXJhZGlhbC1kaXN0YW5jZS1zaGlwcGluZy1yZXN0cmljdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[twhcreations](/forum/user/3186-twhcreations "View twhcreations's Profile")**
- [![twhcreations's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar3186.png)](/forum/user/3186-twhcreations "View twhcreations's Profile") Topic Author
- [ Offline](/forum/user/3186-twhcreations)

Less More

- Posts: 127
- Thank you received: 8
-
-
- [](http://www.webtechplus.com.au)
-

10 years 6 months ago [\#237274](#237274) by [twhcreations](/forum/user/3186-twhcreations "View twhcreations's Profile")  Replied by *[twhcreations](/forum/user/3186-twhcreations "View twhcreations's Profile")* on topic *[Radial Distance Shipping Restriction](/forum/28-shipping-methods/883826-radial-distance-shipping-restriction#237274 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6.19 -- Browser(s) name and version -- : IE, Firefox, Chrome  We have a Florist who is using a local courier who will only deliver within a set radius of 25km Is there any way we can do this within the system? The current restriction by postcode range does not really work well for us as the placement of the postcodes is not logical and pretty random.")*

Ok the customer has gotten back to us that they don't actually use a radial distance they use a suburb list.

So its an odd shape not radial due to the road access to certain suburbs e.g.

Raymond Terrace to Paterson is 27.2Km
Raymond Terrace to Hawks Nest is 53.8Km
Raymond Terrace to Nelson Bay is 44.5Km (will now deliver here)

Is there a way we can list the suburbs and a price range;

$10 delivery fee to;
Raymond Terrace, Millers Forest, Nelsons Plains, Heatherbrae
$15 delivery fee to;
Beresfield, Tarro, Woodberry, Duckenfield, William Town, Ferodale

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvODgzODI2LXJhZGlhbC1kaXN0YW5jZS1zaGlwcGluZy1yZXN0cmljdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 6 months ago [\#237295](#237295) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Radial Distance Shipping Restriction](/forum/28-shipping-methods/883826-radial-distance-shipping-restriction#237295 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6.19 -- Browser(s) name and version -- : IE, Firefox, Chrome  We have a Florist who is using a local courier who will only deliver within a set radius of 25km Is there any way we can do this within the system? The current restriction by postcode range does not really work well for us as the placement of the postcodes is not logical and pretty random.")*

Hi,

In that case, I suppose that you don't ship in different countries (or maybe even different states).
So you could simply deactivate the current states and instead create new state zones and use them in your state address field instead for the selection of the suburb. Then, you can use these state zones in the zone restriction setting of your manual shipping methods so that each shipping method has a different price for a different set of states (suburbs).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvODgzODI2LXJhZGlhbC1kaXN0YW5jZS1zaGlwcGluZy1yZXN0cmljdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.081 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
