Forums / Addon Shipping Modules / Shipping to only certain zip codes

Shipping to only certain zip codes

Locked

Started by deker on 23 Jun 2006, 9:56 PM · Views: 8,310

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
23 Jun 2006, 9:56 PM
#1
deker avatar

deker

New Zenner

Join Date:
Nov 2003
Posts:
12
Plugin Contributions:
0

Shipping to only certain zip codes

I am going to be doing a shopping cart site for a florist, and would like to only allow shipping to certain zip codes surround her shop. Is there a plugin or a way to limit this? I know you can limit shipping to certain zones, but from what I can tell that is only for whole states, and I need to limit it to a zip code or two.

Any help is appreciated.

9 Oct 2006, 7:18 AM
#2
siege avatar

siege

New Zenner

Join Date:
Apr 2005
Posts:
32
Plugin Contributions:
0

Re: Shipping to only certain zip codes

I have a module that will only become available if the delivery address postcode appears in the list of postcodes in the admin panel.

It works on the earlier version of Zen Cart but I should be testing it with 1.3.5 soon

Let me know if you still need it

Siege

Siege

Servant of the LORD.

Ask, and it will be given to you
Seek, and you will find;
Knock, and it will be opened to you...

Matthew 7:7

10 Oct 2006, 2:16 AM
#3
ajcannon avatar

ajcannon

New Zenner

Join Date:
Aug 2006
Posts:
68
Plugin Contributions:
0

Re: Shipping to only certain zip codes

siege,

I would love to have your code for that...could you post it here or email it to me at [email protected]? Thanks!

-Andrew

18 Oct 2006, 7:14 AM
#4
siege avatar

siege

New Zenner

Join Date:
Apr 2005
Posts:
32
Plugin Contributions:
0

Re: Shipping to only certain zip codes

Ok Guys

This is not the normal postcode shipping module

This one has been upgraded so you can set a maximum number of deliveries. The reason I did this is that we do local deliveries and I set this module up for Monday through Saturday. So we don't have heaps of deliveries on one day we can limit the number of orders that can select that delivery day. It works by counting how many orders have already been processed using this module and that also have their status set to '1'. This means that once the orders have been filled and the status updated to completed you will have 0 orders returned and so you can start again. If this feature is not something you want you can disable it by setting the number very high eg 100000. I could change the code so that if the max count field is empty it ignores it (maybe down the track)

Let me know how you get on with it and if you find it useful make a donation to support Zen Cart.

All the best

Siege

Siege

Servant of the LORD.

Ask, and it will be given to you
Seek, and you will find;
Knock, and it will be opened to you...

Matthew 7:7

29 Oct 2006, 8:21 AM
#5
quentinjs avatar

quentinjs

Zen Follower

Join Date:
Mar 2004
Location:
Calgary, Alberta
Posts:
289
Plugin Contributions:
0

Re: Shipping to only certain zip codes

Question... for postal codes... what is the format?

for example... would it be X0X0X0 or X0X 0X0 or X0X-0X0

so T4C 1L6, T4C 1L5, T4C 1L2, .... would be the list...

can a wild charater be used like "?"

so I can then say T4C ???, T3C ???, T2C 1R?, etc..... just trying to reduce typing when you have a million plus people in the city its a lot of postal code!

perhaps add a small readme document with instructions on the english tags, a they don't show up (in the admin) under ZC 1.3.6.

Question #2
This basically acts like the flat rate module, but with restrictions on the "postal codes" used.

Cheers,
Quentin

31 Oct 2006, 4:43 PM
#6
briandmiller avatar

briandmiller

New Zenner

Join Date:
May 2006
Posts:
11
Plugin Contributions:
0

Re: Shipping to only certain zip codes

I have this installed and it is showing up allbeit as the module name (see link below), but it is not working as in if a user has a different delivery zip code the option for free local delivery is still live.

I am using this in v1.3.6

Please advise.

I posted one question at http://www.zen-cart.com/forum/showthread.php?t=35458&page=2&highlight=local+zone

6 Nov 2006, 10:11 PM
#7
bissej avatar

bissej

New Zenner

Join Date:
Oct 2006
Posts:
4
Plugin Contributions:
0

Re: Shipping to only certain zip codes

Hi.
I have a few questions about this.
When you say
" This is not the normal postcode shipping module",
what is the normal postcode shipping module you are referring to?

My other question is what happens if the location is not in the included zone?
For the site I am working on, I need to prevent users in certain states from completing a sale. In this case, I would like to email the information about the sale to the retailer, and tell the customer that they cannot complete the order online, but somebody from the store wil contact them. How can I do this?
thanks.

9 Nov 2006, 3:48 AM
#8
siege avatar

siege

New Zenner

Join Date:
Apr 2005
Posts:
32
Plugin Contributions:
0

Re: Shipping to only certain zip codes

Hi briandmiller

Sorry for the delay in checking this forum - life has been a little hectic lately.

briandmiller:

I have this installed and it is showing up allbeit as the module name (see link below), but it is not working as in if a user has a different delivery zip code the option for free local delivery is still live.

I am using this in v1.3.6

Please advise.

I posted one question at http://www.zen-cart.com/forum/showthread.php?t=35458&page=2&highlight=local+zone

Ok - There are 2 files that need to be installed the \includes\modules\shipping\drmdelivery.php
and the \includes\languages\english\modules\shipping\drmdelivery.php

You need to have both files installed for the names to come up correctly. You can edit the language file (the file with languages in its path) to change the names that display on invoices and in the checkout.

Siege

Servant of the LORD.

Ask, and it will be given to you
Seek, and you will find;
Knock, and it will be opened to you...

Matthew 7:7

9 Nov 2006, 5:38 AM
#9
siege avatar

siege

New Zenner

Join Date:
Apr 2005
Posts:
32
Plugin Contributions:
0

Re: Shipping to only certain zip codes

bissej:

Hi.
I have a few questions about this.
When you say
" This is not the normal postcode shipping module",
what is the normal postcode shipping module you are referring to?

My other question is what happens if the location is not in the included zone?
For the site I am working on, I need to prevent users in certain states from completing a sale. In this case, I would like to email the information about the sale to the retailer, and tell the customer that they cannot complete the order online, but somebody from the store wil contact them. How can I do this?
thanks.

Hi bissej

I had an old module for an earlier version of zencart. It was never posted on the forums.

For your situation it looks like postcode provides overkill as far as resolution goes. You should be able to use the zones and have the delivery option only available to the states you deliver to without contacting the customer. To use the postcode module you would need to input every postcode that falls inside the area you deliver to which could be a longer list than the database will accept.

In any case you would most likley need a special report that tells you of the orders that have been processed that need personal contact (eg. phone call). The alternative would be to have a customised shipping module made that would email you everytime a customer checked out using that delivery module so you would know that you need to contact them.

I hope this helps you

Siege

Servant of the LORD.

Ask, and it will be given to you
Seek, and you will find;
Knock, and it will be opened to you...

Matthew 7:7

9 Nov 2006, 5:46 AM
#10
siege avatar

siege

New Zenner

Join Date:
Apr 2005
Posts:
32
Plugin Contributions:
0

Re: Shipping to only certain zip codes

quentinjs:

Question... for postal codes... what is the format?

for example... would it be X0X0X0 or X0X 0X0 or X0X-0X0

so T4C 1L6, T4C 1L5, T4C 1L2, .... would be the list...

can a wild charater be used like "?"

so I can then say T4C ???, T3C ???, T2C 1R?, etc..... just trying to reduce typing when you have a million plus people in the city its a lot of postal code!

perhaps add a small readme document with instructions on the english tags, a they don't show up (in the admin) under ZC 1.3.6.

Question #2
This basically acts like the flat rate module, but with restrictions on the "postal codes" used.

Cheers,
Quentin

Hi Quentin

Answer #1
The formating requires the exact postcode. I haven't tested it using wildcards like you suggest. The module could be modified to accept wildcards with some effort I'm sure. The readme document is a good idea, I am yet to test the program with 1.3.6, once I have done that I will release an update to the module.

Question #1
Did it work fine for you using 1.3.5 and then stop working or have you only used it in 1.3.6?

Answer #2

Yes. This works like the flat rate module only limited by postcode. It was intended for store that want to offer a local delivery in their immediate area and need better resolution than the zones offer. You can however make as many copies of this module and rename them so you can offer different prices for different areas.

Hope this helps

Any further questions just post'em up and I will replay as soon as I get them.

Siege

Servant of the LORD.

Ask, and it will be given to you
Seek, and you will find;
Knock, and it will be opened to you...

Matthew 7:7

9 Nov 2006, 7:29 PM
#11
bissej avatar

bissej

New Zenner

Join Date:
Oct 2006
Posts:
4
Plugin Contributions:
0

Re: Shipping to only certain zip codes

Hi all.
Siege: thanks so much for you help so far.

siege:

For your situation it looks like postcode provides overkill as far as resolution goes. You should be able to use the zones and have the delivery option only available to the states you deliver to without contacting the customer. To use the postcode module you would need to input every postcode that falls inside the area you deliver to which could be a longer list than the database will accept.

My situation is a bit more complex than I originally presented. I will be doing it by zipcodes for many places, and states for others. For example, delivery to Metro NY costs more than delivery to the rest of the state, so NY will be split up by zip code. But delivery to all of Connecticut is the same price, so that can be done by state. And we don't deliver to anywhere outside of the Northeast. THe client is supposed to give me a CSV file of the zipcode groupings, so I was hoping to use that to input the codes.

I looked into the Zones Rates module, and my impression is that the zones are by country. I'm confused about this. The default zones seem to be broken up into US states, but then the zones rates module (by default) only works for country zones, not state ones. Is my understanding correct? If so, what are the state zones used for, other than taxes?

thanks so much.
-bissej

15 Nov 2006, 7:21 AM
#12
siege avatar

siege

New Zenner

Join Date:
Apr 2005
Posts:
32
Plugin Contributions:
0

Re: Shipping to only certain zip codes

I'm not sure on the zone situation. I'm sure that you can define custom zones and use another shipping module. The good thing about zencart is that you can have multiple shipping modules enabled at once. So you can have an option for local shipping that is only available in a particular zone. For the other zones you would have defined prices. You should be able to find a mix of modules to get the desired result. There would be a lot involved in making a single module do everything that you want it to.

If you check the forums on the zone configuration I'm sure you will find some answers. I haven't had to go there yet as I only have local deliveries at this stage to worry about.

Good luck

Siege

Servant of the LORD.

Ask, and it will be given to you
Seek, and you will find;
Knock, and it will be opened to you...

Matthew 7:7

29 Jan 2007, 11:19 AM
#13
spanked avatar

spanked

New Zenner

Join Date:
Jan 2007
Posts:
1
Plugin Contributions:
0

Re: Shipping to only certain zip codes

Hi,
Great module but how do i change the text that is in the shipping part of checkout?
It currently has
MODULE_SHIPPING_DRMDELIVERY_TEXT_TITLE
MODULE_SHIPPING_DRMDELIVERY_TEXT_WAY
I have tried changing a few things but it is way above me and my limits at the moment.
If i have missed it elsewhere i apologise,
Thanks in advance for your help.
Darren

2 Feb 2007, 7:11 AM
#14
yusuke avatar

yusuke

New Zenner

Join Date:
Feb 2007
Posts:
3
Plugin Contributions:
0

Re: Shipping to only certain zip codes

I hate to bump an old topic but I am having the same issues as spanked. I've looked around the files and messed with them abit with no luck to try to change the way it displays.

Any ideas?

19 May 2010, 1:10 PM
#15
barendfaber avatar

barendfaber

Zen Follower

Join Date:
Apr 2010
Posts:
263
Plugin Contributions:
0

Re: Shipping to only certain zip codes

Hey all,

Had the same problem, I know this an old post but hopefully this could be of use to someone. You need the change the drmdelivery.php file located in includes/languages/english/modules/shipping.

Change MONDAYAM to DRMDELIVERY for all 3 lines, and then update 'DRM Delivery' at the end of line 1 with your own text (you can also change the text at the end of line 2 and 3 to your own):

define('MODULE_SHIPPING_MONDAYAM_TEXT_TITLE', 'DRM Delivery');
define('MODULE_SHIPPING_MONDAYAM_TEXT_DESCRIPTION', 'Local Delivery Limited by Postcode & Number of Deliveries');
define('MODULE_SHIPPING_MONDAYAM_TEXT_WAY', '10AM - 2PM');

Regards

Barend