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

UK Shipping by Postcode

Views: 22,784

Results 21 to 40 of 59
1 Jul 2011, 3:03 PM
#21
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

UK Shipping by Postcode

AndyVI:

What PHP version is your installation using?
PHP Version 5.1.6
Zen Cart 1.3.9h
Please see php version issue
Might ask your host about updating their php

http://www.zen-cart.com/forum/showthread.php?p=953964#post953964

9 Jul 2011, 1:01 AM
#22
andyvi avatar

andyvi

New Zenner

Join Date:
Feb 2011
Posts:
40
Plugin Contributions:
0

Re: UK Shipping by Postcode

Hi Mike,

Thanks for your reply.

Many thanks for that link kobra, the site is on a dedicated server I have since updated the php to PHP Version 5.3.6.

Still experiencing problems with PHxx PAxx KAxx postcode ranges, I have removed whitespace and tried just about every possible combination of zone rates etc..

Kind Regards

Andy

11 Jul 2011, 6:53 AM
#23
z3nn3d avatar

z3nn3d

New Zenner

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

Re: UK Shipping by Postcode

AndyVI:

Still experiencing problems with PHxx PAxx KAxx postcode ranges, I have removed whitespace and tried just about every possible combination of zone rates etc..

Hello Andy

I can't think of any good reason why the module isn't picking up on the postcodes you mention. Where I have it installed it on my own client sites it works on all postcodes as expected.

I'm clutching at straws here, but as I don't have it installed with CEON URI mapping on any sites, all I can think is, that module might be having some effect on it's operation.

The only way to check that out is install a test Zen Cart setup without CEON URI mapping, and see if it works then. Maybe you can try that?

Rgds
Mike

18 Jul 2011, 12:45 PM
#24
gertzy avatar

gertzy

New Zenner

Join Date:
Feb 2010
Posts:
40
Plugin Contributions:
0

Re: UK Shipping by Postcode

I spotted a small error in the postcode list of zone 2 in the distributed package...

Here is a small section of tht line..... Look at IV33... Little space in the middle... is that called white space?

,IV30,IV3,IV32,IV3 3,IV34,IV35,IV36

18 Jul 2011, 12:46 PM
#25
gertzy avatar

gertzy

New Zenner

Join Date:
Feb 2010
Posts:
40
Plugin Contributions:
0

Re: UK Shipping by Postcode

AndyVI:

Hi Mike,

Thanks for your reply.

Many thanks for that link kobra, the site is on a dedicated server I have since updated the php to PHP Version 5.3.6.

Still experiencing problems with PHxx PAxx KAxx postcode ranges, I have removed whitespace and tried just about every possible combination of zone rates etc..

I had the very sme problem.. I went through the postcode list and at the end of each line, seemed to be 'spaces'.. so i removed them spaces... Seemed to fix it...

18 Jul 2011, 1:04 PM
#26
gertzy avatar

gertzy

New Zenner

Join Date:
Feb 2010
Posts:
40
Plugin Contributions:
0

Re: UK Shipping by Postcode

AndyVI:

Hi Mike,

Thanks for your reply.

Many thanks for that link kobra, the site is on a dedicated server I have since updated the php to PHP Version 5.3.6.

Still experiencing problems with PHxx PAxx KAxx postcode ranges, I have removed whitespace and tried just about every possible combination of zone rates etc..

Kind Regards

Andy

Gertzy:

I had the very sme problem.. I went through the postcode list and at the end of each line, seemed to be 'spaces'.. so i removed them spaces... Seemed to fix it...

I should have also said... When I got zone 2 working, I anted to test zone 3 and 4... I only use one extra price for all of any zone 2 thru 4.. So, it would only work if I put the same price in the 2 fields of each zone... "Zone 3 Shipping Table" and "Zone 3 Handling Fee"... for some reason, if I only put in one or the other, got the same message about unable to calculate.

25 Aug 2011, 9:55 PM
#27
jodpcc avatar

jodpcc

New Zenner

Join Date:
Jun 2011
Posts:
6
Plugin Contributions:
0

Re: UK Shipping by Postcode

Does anyone have this module working successfully with Google Checkout?

4 Nov 2011, 12:41 AM
#28
gmak avatar

gmak

New Zenner

Join Date:
Jul 2007
Posts:
14
Plugin Contributions:
0

Re: UK Shipping by Postcode

Hi,
firstly brilliant contribution. In case anyone else falls foul of PAXX etc 'problem'.
Whats happening in my case at least is that whilst testing postcodes I enter PA22 not a full postcode.
In ukpost.php
if ($len <= 6) {$plen = 3;} else {$plen = 4;}
strips of the last character and tests for PA2 which isn't found and defaults to zone 1. Testing other codes eg BT17 works because BT1 is.
For now I'm adding
if ($len == 4) {$plen = 4; } just after as I'm unsure whether customers would enter partial postcodes.
Regards
Gmak

4 Nov 2011, 9:42 AM
#29
z3nn3d avatar

z3nn3d

New Zenner

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

Re: UK Shipping by Postcode

gmak:

Hi,
firstly brilliant contribution. In case anyone else falls foul of PAXX etc 'problem'.
Whats happening in my case at least is that whilst testing postcodes I enter PA22 not a full postcode.

: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 Nov 2011, 1:12 PM
#30
gmak avatar

gmak

New Zenner

Join Date:
Jul 2007
Posts:
14
Plugin Contributions:
0

Re: UK Shipping by Postcode

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

Thanks for the quick response, not intended as a solution hence the 'for now' that said I suppose it needs to be clear.

The idiot test info very helpfull, will definitely implement in some form or other.
Cheers G

13 Feb 2012, 11:42 AM
#31
4jdesigns avatar

4jdesigns

Zen Follower

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

Re: UK Shipping by Postcode

Hi mike

great add-on, but seem to be having a problem when i want use calculation method: weight. It just gives me the line:

UK Postcode (Parcel To: (0 x 0.00Kg)) £0.00

if I change to method: Item, then it detects the postcode and gives me the price that's in the shipping table.

My product weight is set to 1kg so should defo show up a price as there are much ratios set in the table.

Is there certain elements/fields I need to consider if using by weight method?

tx,
Jay

14 Feb 2012, 6:45 AM
#32
z3nn3d avatar

z3nn3d

New Zenner

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

Re: UK Shipping by Postcode

4jDesigns:

My product weight is set to 1kg so should defo show up a price as there are much ratios set in the table. Is there certain elements/fields I need to consider if using by weight method?
Product weight values in Zen Cart are defined as numeric values such as 1 or 2 etc. You can also enter decimal values like 1.5 or 0.25 etc - The weight field should not contain alpha characters like Kg or Lbs

14 Feb 2012, 6:56 AM
#33
4jdesigns avatar

4jdesigns

Zen Follower

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

Re: UK Shipping by Postcode

Sorry for the misunderstanding, it's set to 1, without the kg. but still not getting an amount.

15 Feb 2012, 8:15 AM
#34
z3nn3d avatar

z3nn3d

New Zenner

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

Re: UK Shipping by Postcode

4jDesigns:

Sorry for the misunderstanding, it's set to 1, without the kg. but still not getting an amount.

Firstly, try installing the standard Zones module, which the UKPOST module is based on, and see if the same problem exists with that. If it does, then you have a config error of some sort in your general Zen Cart setup.

If your original post is referring to UK Postcode (Parcel To: (0 x 0.00Kg)) £0.00 showing in the Shipping Estimator, then it seems there is a bug in the Shipping estimator on some server/php systems - If that's the case then the correct shipping value should still show correctly in the customer checkout.

The weight-price values set in the UKPOST module are defined like 0.01:1.39,0.25:1.72,0.50:2.24,0.75:2.75,1.00:3.35,1.25:4.50 ,1.50:5.20,1.75:5.90,2.0:6.60,250.0:18.45

The last weight-price value must be the set high, i.e. such as 250.0:18.45 for the reason explained on my website
http://www.zenned.co.uk/shipping-by-uk-postcode.html

15 Feb 2012, 8:29 AM
#35
4jdesigns avatar

4jdesigns

Zen Follower

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

Re: UK Shipping by Postcode

Thanks for getting back to me.

Will check up on the standard zones module to see if that's the problem, but i am using the shipping estimator as you said and that's where it does give me that value.

Will have a look at it in a bit and let you know a bit more

p.s. I have the weight-price values set as you defined them.

15 Feb 2012, 8:52 AM
#36
4jdesigns avatar

4jdesigns

Zen Follower

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

Re: UK Shipping by Postcode

Not sure if this makes sense, but...

If I have the weight value = 0 for a product, it tells me UK Postcode (Parcel To: (1 x 0.00Kg)) £1.39... which makes sense, but as soon as I put any other value in it reverts to* (0 x 0.00Kg)) £0.00*, even will a high ratio of 250 in each shipping table.

btw it is also doing it in checkout as well as shipping estimator.

Will play around a bit more, but let me know if you now something extra,

Thanks,
Jay

20 Feb 2012, 9:14 AM
#37
4jdesigns avatar

4jdesigns

Zen Follower

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

Re: UK Shipping by Postcode

Hi Mark

I noticed you said I should try installing standard Zones module, but which one would be the standard zones module?

Currently I have UK counties install (http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_55&products_id=299)

This is most likely causing my problem, could you please send me a link to the module that best works with yours.

Thanks.
Jay

20 Feb 2012, 12:01 PM
#38
4jdesigns avatar

4jdesigns

Zen Follower

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

Re: UK Shipping by Postcode

I did a fresh install an loaded your module, it works fine except that I noticed that my product has a weight of 3lbs and the shipping estimator shows a weight of 6Kg (which its gives the value for correctly 6:6.99)... Does your module convert Lbs to Kg? As the site I am having an issue with I have set my language file to show Kg instead of lbs.

20 Feb 2012, 3:49 PM
#39
4jdesigns avatar

4jdesigns

Zen Follower

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

Re: UK Shipping by Postcode

Another thing I have noticed is that if I put in handling fees for each zone it is correctly added to my delivery in respect to my chosen postcode.

If that helps?

With regards to your comment about standard zones, is your module more aimed at the countries setup which defines the address_format? If so, then my country 'United Kingdom' is using format '6' which I think is the standard format for the UK.

21 Feb 2012, 6:07 AM
#40
z3nn3d avatar

z3nn3d

New Zenner

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

Re: UK Shipping by Postcode

We are dealing with shipping so I was suggesting you try the Zone Rates shipping module not Geo Zones, or Localization settings...:blink:

The UK Postcodes module doesn't convert lbs to kg, that isn't necessary... Weight is just a numeric value and can equally refer to grams, ounces, lbs, kg, tons etc. The postcode module uses the value as set in the weight field of the product entry.

The weight of the final order is just a combined summary of the numeric weight values.

Any weight suffix (grams, ounces, lbs, kg, tons) is fetched from the language file and is appended to the final number (weight).