City Zone

  • Posts: 23
  • Thank you received: 0
13 years 5 months ago #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

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
13 years 5 months ago #22702

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 or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 0
13 years 5 months ago #22704

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 :)

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 or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
13 years 5 months ago #22706

Thanks, bell and whistles will come. We're already starting to add them :)

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 or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 0
13 years 5 months ago #22778

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 or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
13 years 5 months ago #22785

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

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

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

  • Posts: 7
  • Thank you received: 0
12 years 9 months ago #47396

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/

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #47399

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 or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 9 months ago #47401

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


Speekeezy Publication Workshop
www.speekeezy.ca/

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

  • Posts: 7
  • Thank you received: 0
12 years 9 months ago #47415

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/

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #47417

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 or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 9 months ago #47425

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/

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #47427

You won't be able to do that then.

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

  • Posts: 7
  • Thank you received: 0
12 years 9 months ago #47428

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/

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #47430

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

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

Time to create page: 0.088 seconds
Powered by Kunena Forum