Zen Cart Logo
Forums / Addon Shipping Modules / Adding zip codes in batches

Adding zip codes in batches

Locked

Views: 2,248

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
16 Dec 2008, 5:32 PM
#1
capeinfo avatar

capeinfo

New Zenner

Join Date:
Jun 2007
Posts:
9
Plugin Contributions:
0

Adding zip codes in batches

I'm using the ZipShip module for shipping and I need to add large numbers of postal/zip codes to the different zones. Rather than add them individually, is there a way to add sequential groups, eg. 10000-20000, 20999-31000?

I'm sure this must be a protocol used elsewhere.

Thanks to whoever can help!

16 Dec 2008, 7:24 PM
#2
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Adding zip codes in batches

I've not tried to add zipcodes in that fashion. Let me take a look and see if I can figure out the best way to accomplish that and I'll post back.

Ruth

16 Dec 2008, 7:57 PM
#3
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Adding zip codes in batches

The best way to do it, but I don't have time right now to work through it, would be to create a db table to pull the zip codes from, similar to the way that the zones are built and have it check the table for the existing zip code the same way it checks the table for Country, State etc. You maybe able to find a download of all the zip codes vs. creating them all by hand.

You would still need to build the table with all the zip codes. I just don't see any way to get it to assume a range. Possibly someone with better Php skills than I have or a better knowledge of the of the shipping within the cart could come up with a method for the system to identify the range. I would think this would be in Dr. Byte's realm of expertise.

Sorry I'm not of more help.

Ruth

21 Dec 2008, 1:45 PM
#4
capeinfo avatar

capeinfo

New Zenner

Join Date:
Jun 2007
Posts:
9
Plugin Contributions:
0

Re: Adding zip codes in batches

Thanks so much for your effort, Ruth. In the end, I did it the long way which is likely to be more accurate in any case.

I also wanted to know if ZipShip can be allocated to a specific shipping zone, as with some of the other modules.

I am having problems with the Shipping Estimator and wondered if others have had the same.

Thanks again for a really useful module.
Carl

21 Dec 2008, 1:56 PM
#5
capeinfo avatar

capeinfo

New Zenner

Join Date:
Jun 2007
Posts:
9
Plugin Contributions:
0

Re: Adding zip codes in batches

I should have added... is there a limit to the number of characters (eg. 255) that can be inserted into the text boxes? Mine are way over that.

21 Dec 2008, 6:43 PM
#6
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Adding zip codes in batches

If you take a look at the actual file, there are instructions there that might help you. You can create multiple zipship zones within the module. It is set to 3, but you can change that in the file itself. Try breaking up your zip codes into related areas and place them in their own zone see if that helps. Be sure to set your rate tables accordingly.

I built this for a very limited application and to be honest have not taken a look at it since. Its original intent was to create a small zone near my customer's brick and mortar shop that she would offer free and reduced shipping to based on order total.

As shipping module parameters are written to the configuration table in the database, the parameters are set for "text" in the db for the "value" field which is where zip code list is entered. There is not a specific limitation for that field set in the db, where the key does have a 255 limitation; however reducing the size of the zone might help you and help processing time.

Sorry I can't offer any more suggestions.

Ruth

31 Mar 2009, 11:38 AM
#7
xtracool avatar

xtracool

New Zenner

Join Date:
Feb 2009
Posts:
46
Plugin Contributions:
0

Re: Adding zip codes in batches

Hi,
I am just starting to play with ZenCart. I have installed the ZipShip module and I am trying to increase the number of zones from the default (3) to 5.

I have followed the instructions to change $this->num_zones = 3; to $this->num_zones = 5; in zipship.php. This produces additional data fields for the zipship configuration in the shipping modules admin, but the new additional data fields do not have a title or discription. When I add data to these (in what I think are the correct areas-as no descriptions are visable) the data disapears after I update

Does nyone have any ideas on what is causing this? Is there more to modify than just $this->num_zones = 5 ?

I am using Zen Cart 1.3.8a

Any help appreciated
Alan:huh:

14 Apr 2009, 4:13 AM
#8
con_andrews avatar

con_andrews

New Zenner

Join Date:
Apr 2008
Location:
Sydney Australia
Posts:
9
Plugin Contributions:
0

Re: Adding zip codes in batches

I have experienced the same issue as Alan in relation to the "extra" fields not displaying any text reference, and also, the information NOT appearing when entered, and updated.

If anyone has come across this problem and come up with a work around or some kind of solution, it would be greatly appreciated.

Con:frusty:

17 Apr 2009, 5:32 AM
#9
xtracool avatar

xtracool

New Zenner

Join Date:
Feb 2009
Posts:
46
Plugin Contributions:
0

Re: Adding zip codes in batches

Hi Con,

I think that the problem that I have may be that I am using Zen Cart™ Version: v1.3.8a and Zipship has only been updated to Zen Cart™ Version: v1.3.7.

Failing someone updating (I don't have the skills), the only solution I can see is to purchase Ceon Advanced Shipper http://dev.ceon.net/web/zen-cart/advshipper

Alan

9 May 2009, 3:09 AM
#10
xtracool avatar

xtracool

New Zenner

Join Date:
Feb 2009
Posts:
46
Plugin Contributions:
0

Re: Adding zip codes in batches

I have found the answer to problem of additional zones not showing properly in the zip ship module

I just needed to remove the shipping module in admin and then re-install in admin again. just changing the Php file is not enough to have the changes reflected in the admin

Alan