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

#   City Zone

##

- **[benweb](/forum/user/3450-benweb "View benweb's Profile")**
- [![benweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3450-benweb "View benweb's Profile") Topic Author
- [ Offline](/forum/user/3450-benweb)

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 2 months ago [\#22698](#22698) by [benweb](/forum/user/3450-benweb "View benweb's Profile")  *[City Zone](/forum/4-how-to/22698-city-zone#22698 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")* was created by *[benweb](/forum/user/3450-benweb "View benweb's Profile")*

I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?

Thanks Brad

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjk4LWNpdHktem9uZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

15 years 2 months ago [\#22702](#22702) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#22702 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

No, you can't do that.
However, if you want to setting shipping methods based on the city, you can use zip code ranges restrictions when creating/editing manual shipping methods.

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

- **[benweb](/forum/user/3450-benweb "View benweb's Profile")**
- [![benweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3450-benweb "View benweb's Profile") Topic Author
- [ Offline](/forum/user/3450-benweb)

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 2 months ago [\#22704](#22704) by [benweb](/forum/user/3450-benweb "View benweb's Profile")  Replied by *[benweb](/forum/user/3450-benweb "View benweb's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#22704 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

Unfortunately I live in Canada and our postal codes are alpha numeric and have no reason to them so don't work for zone ranges. I worked around the problem by using the country field for our states and the state field for cities.. seems to work as we only sell in Canada,

Would be great to see a module for Canada post ![:)](/media/kunena/emoticons/8.png ":)")

I think you guys deserve a pat on the back for this software!!! It looks great. Would be nice to see some more bells and whistles like virtuemart.. but you layout is way better.

Thanks again.
Brad

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjk4LWNpdHktem9uZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

15 years 2 months ago [\#22706](#22706) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#22706 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

Thanks, bell and whistles will come. We're already starting to add them ![:)](/media/kunena/emoticons/8.png ":)")

A canada post plugin is on the todo list.

Note that you can have ranges of only one zip code and use the post code prefix and suffix fields when you have alphabetic characters so you should still be able to use that method, even though your method is fine too.

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

- **[benweb](/forum/user/3450-benweb "View benweb's Profile")**
- [![benweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3450-benweb "View benweb's Profile") Topic Author
- [ Offline](/forum/user/3450-benweb)

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 2 months ago [\#22778](#22778) by [benweb](/forum/user/3450-benweb "View benweb's Profile")  Replied by *[benweb](/forum/user/3450-benweb "View benweb's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#22778 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

Thought I had it but the changes I made changing the fields breaks the paypal mod so back to the drawing board

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjk4LWNpdHktem9uZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

15 years 2 months ago [\#22785](#22785) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#22785 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

That's normal, you need to edit the plugins/hikashoppayment/paypal.php file and change the lines:
$vars["state"]=@$order-&gt;cart-&gt;$address_type-&gt;address_state-&gt;zone_code_2;
$vars["country"]=@$order-&gt;cart-&gt;$address_type-&gt;address_country-&gt;zone_code_2;

so that it gives to paypal the correct information. For example:
$vars["state"]=@$order-&gt;cart-&gt;$address_type-&gt;address_country-&gt;zone_code_2;
$vars["country"]='US';

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

- **[Grover](/forum/user/7147-grover "View Grover's Profile")**
- [![Grover's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7147.jpg)](/forum/user/7147-grover "View Grover's Profile")
- [ Offline](/forum/user/7147-grover)

Less More

- Posts: 7
- Thank you received: 0
-
-
- [](http://www.speekeezy.ca/)
-

14 years 6 months ago [\#47396](#47396) by [Grover](/forum/user/7147-grover "View Grover's Profile")  Replied by *[Grover](/forum/user/7147-grover "View Grover's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#47396 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

> Note that you can have ranges of only one zip code and use the post code prefix and suffix fields when you have alphabetic characters so you should still be able to use that method, even though your method is fine too.

Could you give an example of this? I'd like to offer free shipping for a time to postal codes in the range V6A to V6G but I haven't been able to get it to work. It sounds like this is what I should be setting from the description above.

Prefix: V
Minimum post code: 6
Maximum post code: 6
Suffix: G

PS Rockin' great cart, lots of functionality and yet fairly simple implementation.

---

Speekeezy Publication Workshop
[ www.speekeezy.ca/](http://www.speekeezy.ca/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjk4LWNpdHktem9uZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

14 years 6 months ago [\#47399](#47399) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#47399 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

What you configured will be displayed only for people with the post code V6G
If you want to allow it only for the post codes from V6A to V6G
You will have to create one similar shipping method for each post code, V6A, V6B, V6C,...V6G.

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

- **[Grover](/forum/user/7147-grover "View Grover's Profile")**
- [![Grover's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7147.jpg)](/forum/user/7147-grover "View Grover's Profile")
- [ Offline](/forum/user/7147-grover)

Less More

- Posts: 7
- Thank you received: 0
-
-
- [](http://www.speekeezy.ca/)
-

14 years 6 months ago [\#47401](#47401) by [Grover](/forum/user/7147-grover "View Grover's Profile")  Replied by *[Grover](/forum/user/7147-grover "View Grover's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#47401 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

Wow, blisteringly fast response. Thanks so much. I'll give it a try.

---

Speekeezy Publication Workshop
[ www.speekeezy.ca/](http://www.speekeezy.ca/)

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

- **[Grover](/forum/user/7147-grover "View Grover's Profile")**
- [![Grover's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7147.jpg)](/forum/user/7147-grover "View Grover's Profile")
- [ Offline](/forum/user/7147-grover)

Less More

- Posts: 7
- Thank you received: 0
-
-
- [](http://www.speekeezy.ca/)
-

14 years 6 months ago [\#47415](#47415) by [Grover](/forum/user/7147-grover "View Grover's Profile")  Replied by *[Grover](/forum/user/7147-grover "View Grover's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#47415 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

I couldn't get it to work by creating one similar shipping method for each post code. Not even when I put in an exact postal code or try with either the entire V range or the V6 range. Any other ideas? It's not a huge deal. I can try and get people to in the local area to just contact me directly and process it outside of the cart.

---

Speekeezy Publication Workshop
[ www.speekeezy.ca/](http://www.speekeezy.ca/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjk4LWNpdHktem9uZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

14 years 6 months ago [\#47417](#47417) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#47417 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

So your country uses three letters post codes ?
V6G is a post code ? Or it's only a piece of post code ?
If V6G is the full post code, that should work and I don't have another idea.

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

- **[Grover](/forum/user/7147-grover "View Grover's Profile")**
- [![Grover's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7147.jpg)](/forum/user/7147-grover "View Grover's Profile")
- [ Offline](/forum/user/7147-grover)

Less More

- Posts: 7
- Thank you received: 0
-
-
- [](http://www.speekeezy.ca/)
-

14 years 6 months ago [\#47425](#47425) by [Grover](/forum/user/7147-grover "View Grover's Profile")  Replied by *[Grover](/forum/user/7147-grover "View Grover's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#47425 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

No we use 6 digits in Canada with a space optional between each set of three. The first set of three indicates city and area within that city. I tried setting up the shipping in HikaShop with 3, 6, with or without a space and even used my own exact postal code [V6G 1X2] but no joy. The $0 shipping price tag wouldn't have anything to do with it, would it?

---

Speekeezy Publication Workshop
[ www.speekeezy.ca/](http://www.speekeezy.ca/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjk4LWNpdHktem9uZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

14 years 6 months ago [\#47427](#47427) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#47427 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

You won't be able to do that then.

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

- **[Grover](/forum/user/7147-grover "View Grover's Profile")**
- [![Grover's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7147.jpg)](/forum/user/7147-grover "View Grover's Profile")
- [ Offline](/forum/user/7147-grover)

Less More

- Posts: 7
- Thank you received: 0
-
-
- [](http://www.speekeezy.ca/)
-

14 years 6 months ago [\#47428](#47428) by [Grover](/forum/user/7147-grover "View Grover's Profile")  Replied by *[Grover](/forum/user/7147-grover "View Grover's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#47428 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

So just to clarify for those who follow, HS doesn't support alphanumeric systems, at least not as implemented in Canada?

---

Speekeezy Publication Workshop
[ www.speekeezy.ca/](http://www.speekeezy.ca/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjk4LWNpdHktem9uZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

14 years 6 months ago [\#47430](#47430) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: City Zone](/forum/4-how-to/22698-city-zone#47430 "I see you can have country zones and state zones which cab be used for shipping but is there a way to use the city field from the shipping address as a zone as well?  Thanks Brad")*

They are supported, but not if you have letters in the middle and only for these manual shipping method options.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjk4LWNpdHktem9uZT90bXBsPW1hcmtkb3du) 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.381 seconds

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

[](#top)
