Zen Cart Logo
Forums / Addon Shipping Modules / UK Shipping by Postcode

UK Shipping by Postcode

Views: 22,784

Results 41 to 59 of 59
21 Feb 2012, 6:26 AM
#41
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

UK Shipping by Postcode

Thought it was as straight forward. Been playing around for a few days now, so think its definitely got to do with my Zones.

Let me load new files and see what happens,

Thanks,
Jay

21 Feb 2012, 10:01 AM
#42
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: UK Shipping by Postcode

Hey Mike

This is completely puzzling me.

This is where I am....

I have got all my zones / countries as per first install.

My Settings:

Postcode = AB31 1AB (Zone 2)
got an item with a weight of 1

Zone 1 Shipping Table
1.00:1.99,2:2.99:3,:3.99:100:10.99

Zone 2 Shipping Table
1.00:21.99,2:22.99:3,:23.99:100:210.99

Zone 3 Shipping Table
1.00:31.99,2:32.99:3,:33.99:100:310.99

Zone 4 Shipping Table
1.00:41.99,2:42.99:3,:43.99:100:410.99

Postcodes are set to your standard list.

My Methods and Results:

calculation method = weight

Result = Parcel To: (0 x 0.00Kg) £0.00

calculation method = item

Add 1 to cart
Result = (Parcel To: AB31 1AB ) £21.99

Add 2 to cart
Result = (Parcel To: AB31 1AB ) £22.99

... and so on.

Why does it calculated 'item method' as it should but 'weight method' does not get acknowledged?

I'm assuming as the 'item method' works perfectly with my postcodes, it would not a problem with my zones or general setup?

I will PM you my details so you can have a look first hand if you have some time.

Thanks,
Jay

6 Mar 2012, 10:58 AM
#43
voluntaryist_only avatar

voluntaryist_only

New Zenner

Join Date:
Sep 2010
Posts:
60
Plugin Contributions:
0

Re: UK Shipping by Postcode

Hi got a problem,...
I installed this mod, I have the following set-up:
Zen Cart 1.3.9f, MySQL 5.1.49, PHP Version 5.2.17
install went ok, had to do the &, (space ampersand comma) thing to ensure was not pushed over too far, that's ok.
I have the following as the settings:

Enable PostCode Method True

Calculation Method Price

Tax Class --none--

Tax Basis Store

Sort Order 0

Zone 1 Post Codes
LEAVE EMPTY

Zone 1 Shipping Table
10.00:0.00,59.99:3.76,9999.99:0.00

Zone 1 Handling Fee
0

Zone 2 Post Codes
AB31 &,AB32 &,AB33 &,AB34 &,AB35 &,AB36 &,AB37 &,AB38 &,AB40 &,AB41 &,AB42 &,AB43 &,AB44 &,AB45 &,AB46 &,AB47 &,AB48 &,AB49 &,AB50 &,AB51 &,AB52 &,AB53 &,AB54 &,AB55 &,AB56 &,KW1 &,KW2 &,KW3 &,KW4 &,KW5 &,KW6 &,KW7 &,KW8 &,KW9 &,KW10 &,KW11 &,KW12 &,KW13 &,KW14 &,PA21 &,PA22 &,PA23 &,PA24 &,PA25 &,PA26 &,PA27 &,PA28 &,PA29 &,PA30 &,PA31 &,PA32 &,PA33 &,PA34 &,PA35 &,PA36 &,PA37 &,PA38 &,PA39 &,PA40 &,PA41 &,PA45 &,PA46 &,PA47 &,PA48 &,PA49 &,PA20 &,PA42 &,PA43 &,PA44 &,PA60 &,PA61 &,PA62 &,PA63 &,PA64 &,PA65 &,PA66 &,PA67 &,PA68 &,PA69 &,PA70 &,PA71 &,PA72 &,PA73 &,PA74 &,PA75 &,PA76 &,PA77 &,PA78 &,PH17 &,PH18 &,PH19 &,PH20 &,PH21 &,PH22 &,PH23 &,PH24 &,PH25 &,PH26 &,PH30 &,PH31 &,PH32 &,PH33 &,PH34 &,PH35 &,PH36 &,PH37 &,PH38 &,PH39 &,PH40 &,PH41 &,PH42 &,PH43 &,PH44 &,PH49 &,PH50 &,KA27 &,KA28 &,HS1 &,HS2 &,HS3 &,HS4 &,HS5 &,HS6 &,HS7 &,HS8 &,HS9 &,ZE1 &,ZE2 &,ZE3 &,ZE4 &,IV1 &,IV2 &,IV3 &,IV4 &,IV5 &,IV6 &,IV7 &,IV8 &,IV9 &,IV10 &,IV11 &,IV12 &,IV13 &,IV14 &,IV15 &,IV16 &,IV17 &,IV18 &,IV19 &,IV20 &,IV21 &,IV22 &,IV28 &,IV24 &,IV25 &,IV26 &,IV27 &,IV28 &,IV29 &,IV30 &,IV3 &,IV32 &,IV33 &,IV34 &,IV35 &,IV36 &,IV37 &,IV38 &,IV39 &,IV40 &,IV41 &,IV42 &,IV43 &, & &,IV44 &,IV45 &,IV46 &,IV47 &,IV48 &,IV49 &,IV50 &,IV51 &,IV52 &,IV53 &,IV54 &,IV55 &,IV56 &,IV57 &,IV58 &,IV59 &,IV60 &,IV61 &,IV62 &,IV63

Zone 2 Shipping Table
25.00:5.50 &,50.00:9.50 &,75.00:15.50 &,100.00:17.50 &,150.00:25.00 &,200.00:35.00 &,300.00:40.00 &,400.00:50.00 &,500.00:60.00 &,600.00:70.00 &,10000.00:0.00

Zone 2 Handling Fee

Zone 3 Post Codes
BT1 &,BT2 &,BT3 &,BT4 &,BT5 &,BT6 &,BT7 &,BT8 &,BT9 &,BT10 &,BT11 &,BT12 &,BT13 &,BT14 &,BT15 &,BT16 &,BT17 &,BT18 &,BT19 &,BT20 &,BT21 &,BT22 &,BT23 &,BT24 &,BT25 &,BT26 &,BT27 &,BT28 &,BT29 &,BT30 &,BT31 &,BT32 &,BT33 &,BT34 &,BT35 &,BT36 &,BT37 &,BT38 &,BT39 &,BT40 &,BT41 &,BT42 &,BT43 &,BT44 &,BT45 &,BT46 &,BT47 &,BT48 &,BT49 &,BT50 &,BT51 &,BT52 &,BT53 &,BT54 &,BT55 &,BT56 &,BT57 &,BT58 &,BT59 &,BT60 &,BT61 &,BT62 &,BT63 &,BT64 &,BT65 &,BT66 &,BT67 &,BT68 &,BT69 &,BT70 &,BT71 &,BT72 &,BT73 &,BT74 &,BT75 &,BT76 &,BT77 &,BT78 &,BT79 &,BT80 &,BT81 &,BT82 &,BT83 &,BT92 &,BT93 &,BT94 &,IM1 &,IM2 &,IM3 &,IM4 &,IM5 &,IM6 &,IM7 &,IM8 &,IM9 &,TR21 &,TR22 &,TR23 &, TR24 &,TR25

Zone 3 Shipping Table
25.00:5.50 &,50.00:9.50 &,75.00:15.50 &,100.00:17.50 &,150.00:25.00 &,200.00:35.00 &,300.00:40.00 &,400.00:50.00 &,500.00:60.00 &,600.00:70.00 &,10000.00:0.00

Zone 3 Handling Fee

Zone 4 Post Codes
JE1 &,JE2 &,JE3 &,JE4 &,GY1 &,GY2 &,GY3 &,GY4 &,GY5 &,GY6 &,GY7 &,GY8 &,GY9 &,GY10

Zone 4 Shipping Table
25.00:5.50 &,50.00:9.50 &,75.00:15.50 &,100.00:17.50 &,150.00:25.00 &,200.00:35.00 &,300.00:40.00 &,400.00:50.00 &,500.00:60.00 &,600.00:70.00 &,10000.00:0.00

Zone 4 Handling Fee

the only part that seems to be working is the "zone 1 shipping" nothing else. I have made sure that there are no extra spaces between the postcode listings & i have made sure that the post code inserted for testing is a full & complete one ie:AB31 4AB

I have got zones setup for UK counties but I inserted those individually myself I did not use a module of any kind. I have got Ceon URI Mapping (SEO) installed, does that hurt it? hope not. any clues anyone? Any help would be greatly appreciated. hope to hear soon....

regards,
ed

6 Mar 2012, 11:14 AM
#44
voluntaryist_only avatar

voluntaryist_only

New Zenner

Join Date:
Sep 2010
Posts:
60
Plugin Contributions:
0

Re: UK Shipping by Postcode

hi, just noticed a small mstake, the doubling up of the space ampersand comma after IV43. I have fixed this but this has still not made it work, ? :-(

ed

6 Mar 2012, 1:53 PM
#45
voluntaryist_only avatar

voluntaryist_only

New Zenner

Join Date:
Sep 2010
Posts:
60
Plugin Contributions:
0

Re: UK Shipping by Postcode

Hi, anyone reading this at the moment? .....

6 Mar 2012, 4:59 PM
#46
voluntaryist_only avatar

voluntaryist_only

New Zenner

Join Date:
Sep 2010
Posts:
60
Plugin Contributions:
0

Re: UK Shipping by Postcode

for some reason it just suddenly started working, weird, but great, am currently testing it, great mod btw way thanx zenned uk ;-)

regards,

ed

7 Mar 2012, 7:21 AM
#47
z3nn3d avatar

z3nn3d

New Zenner

Join Date:
Jun 2009
Location:
Porthleven, Cornwall, UK
Posts:
43
Plugin Contributions:
0

Re: UK Shipping by Postcode

voluntaryist.only:

hi, just noticed a small mstake, the doubling up of the space ampersand comma after IV43. I have fixed this but this has still not made it work, ? :-(
ed

You have ampersands and spaces all over the place... i.e. AB31 &,AB32 &,AB33 &,AB34 &,AB35 &,AB36 &,AB37 &,AB38 &,AB40 &,AB41 &,AB42 &,AB43 &,AB44

The script is trying to match postcodes found between the commas and is finding 'AB31 &' in your setup. 'AB31 &' is not a postcode.

The postcode table should look something like..
AB31,AB32,AB33,AB34,AB35,AB36,AB37,AB38,AB40,AB41,AB42,AB43,AB44, &,

Adding a space/ampersand/comma every 10-15 postcode entries acts as a line break, stopping the page getting over wide.

You would then continue
AB45,AB46,AB47,AB48,AB49,AB50,AB51,AB52,AB53,AB54,AB55,AB56,KW1,KW2,KW3,KW4,KW5, &, etc etc

7 Mar 2012, 10:15 AM
#48
voluntaryist_only avatar

voluntaryist_only

New Zenner

Join Date:
Sep 2010
Posts:
60
Plugin Contributions:
0

Re: UK Shipping by Postcode

Hi Zenned UK,
thanks for the reply, yes, i did do that in the end, it seems to be all working now, great module btw, :clap:

regards,

ed

11 Apr 2012, 10:35 PM
#49
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: UK Shipping by Postcode

Hmm, I installed this on 2 zencarts and it works like a dream on one of them. The other, however, gives me a blank page at index.php?main_page=checkout_shipping. It breaks the checkout completely.

I'm using Zen Cart 1.3.9h, PHP Version: 5.2.9 (Zend: 2.2.0), MySQL 5.1.61-cll.

Any suggestions please?
:blink:

11 Apr 2012, 10:47 PM
#50
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: UK Shipping by Postcode

It doesn't show in the shipping estimator on the index.php?main_page=shopping_cart page - the popup box is blank with only the close window link on it....

I'm really stumped, I have made sure that the zencart settings are the same on both websites before testing too.

19 Apr 2012, 8:50 PM
#51
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: UK Shipping by Postcode

Just wanted to thank the developer Mike for recoding the module to work with my configuration - so thank you Mike!

:clap:
Claire

18 May 2012, 11:52 AM
#52
barendfaber avatar

barendfaber

Zen Follower

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

Re: UK Shipping by Postcode

Hi,

I hope you can help me. I am working on https://www.thaigardennewbarnet.co.uk. The customer only delivers to a few post codes within London. I have set my zones as just 1, and in Zen Cart this is what is in my module:

Enable PostCode Method
True

Calculation Method
Price

Tax Class
--none--

Tax Basis
Shipping

Sort Order
1

Zone 1 Post Codes
EN1,EN2,EN4,EN5,EN6,N3,N11,N12,N13,N21,NW7,WD6

Zone 1 Shipping Table
1000:0.00

Zone 1 Handling Fee
0

However, when I try to place an order with postcode SE18 6JH, it does not give any error messages that the shop does not deliver to that post code. What have I done wrong here?

14 Feb 2013, 6:20 PM
#53
jelly8ean avatar

jelly8ean

New Zenner

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

Re: UK Shipping by Postcode

Hi Zenned,

Your UKPost module is really great. Would you consider adding this coding to the module download? I only ask because I've been troubled with why this wasn't working all day and close to removing it completely, until I found this. I'm sure others would appreciate it too.

Many thanks

Z3NN3D:

:blink: Buyers are unlikely to fall foul of the 'PA22 problem' if they enter a valid and complete UK postcode in the shipping estimator or in the checkout.

The module is designed to estimate or apply shipping costs in the checkout based on the buyer entering a complete UK 5 or 6 digit postcode.

Your 'solution' will continue to cause incorrect shipping values to be returned in response to partial postcodes being entered.

If you want to create a partial 'idiot' trap in the module then.. UK postcodes are either 5 or 6 digits long, so you could do a test on the string to see if it's less than 5 characters, and return an error message if it is.

To do that...
if you open /includes/modules/shipping/ukpost.php

Insert the line
if ($len <= 4) {$error2 = true;} after $len = strlen($pcode); (around line 115)

**Then add the line **
if ($error2 == true) $this->quotes['error'] = MODULE_SHIPPING_UKPOST_INVALID_POSTCODE; After the line if ($error == true) $this->quotes['error'] = MODULE_SHIPPING_UKPOST_INVALID_CODE;

**Then **open /includes/languages/english/modules/shipping/ukpost.php

Add the line
define('MODULE_SHIPPING_UKPOST_INVALID_POSTCODE', 'Invalid Postcode Entered');

4 Sep 2013, 2:51 PM
#54
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Re: UK Shipping by Postcode

Completely Stuck please help!

I have installed everything correctly and it seems to be working for the most part, But on the checkout page 1 it shows as 0, when you click next step the correct amount shows.

Ive been looking and looking and trying to find the answer!

Please help!

4 Nov 2017, 2:35 PM
#55
teaj avatar

teaj

New Zenner

Join Date:
Dec 2007
Location:
South, UK
Posts:
66
Plugin Contributions:
0

Re: UK Shipping by Postcode

Thanks for this add-on, very useful.

I wondered if there would be an easy way to have it show only when the order is shipping to the UK? At present it is a 'not applicable' shipping option to international customers. Which is fine, but it would be nicer if it wasn't there at all.

Cheers!

28 Dec 2021, 3:18 PM
#56
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: UK Shipping by Postcode

Brexit problems.

I am now not able to ship to Northern Ireland and need a way to exclude those postcodes from this shipping module.

To start with I just raised the shipping cost to those postcodes massively so people would not purchase, but that does not look good for my shops.

Is there a way to set one of the shipping zones to be a "No delivery" zone so if a customer tries to purchase using a postcode in that zone they get a message "Sorry but we are not able to ship to your address" message?

22 Feb 2022, 7:42 AM
#57
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: UK Shipping by Postcode

Congerman:

Brexit problems.

I am now not able to ship to Northern Ireland and need a way to exclude those postcodes from this shipping module.

To start with I just raised the shipping cost to those postcodes massively so people would not purchase, but that does not look good for my shops.

Is there a way to set one of the shipping zones to be a "No delivery" zone so if a customer tries to purchase using a postcode in that zone they get a message "Sorry but we are not able to ship to your address" message?

Can anyone help with this?

15 Sep 2022, 3:08 PM
#58
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

Re: UK Shipping by Postcode

Congerman:

Can anyone help with this?
Hi
Have you tried removing all the NI post codes usually in zone 3 in the shipping module and also removing all the NI towns in Zones?

15 Sep 2022, 3:38 PM
#59
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: UK Shipping by Postcode

ianhg:

Hi
Have you tried removing all the NI post codes usually in zone 3 in the shipping module and also removing all the NI towns in Zones?

That is what I ended up doing, thanks for the reply