-
UK Shipping by Postcode
Parcelforce, DHL, UPS, FedEx, City Link, Hermes, HDNL, TNT, and most UK carriers charge extra for carriage of packages outside of mainland England.
Many of my UK based customers have struggled to implement a reasonable mechanism to cope with the range of charges in their shipping using Zen's Zone module, so I have created a specific shipping by UK Postcode module that enables you to set up standard postage charges for UK mainland postcodes, and also allocate additional shipping charges to 'premium' postcode destinations in Scotland, Northern Ireland, Isle of Man, The Scilly Isles, and the Channel Islands.
The module has been tested with versions 1.38a up to 1.39h and works without problems with all tested versions.
I will be submitting the module to the Free Software Addons but in the meantime, if anyone wants such a module then you can download it from my website.
Download URLhttp://www.zenned.co.uk/modules/UK_P...e_Shipping.zip
The above URL will always have the latest version posted and available should it need to be upgraded at any time.
:smile: Enjoy!!
-
Re: UK Shipping by Postcode
Why not submit it to the addon section
Many will have a hard time finding it here
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
kobra
Why not submit it to the addon section
Many will have a hard time finding it here
I already said I was submitting it to the download section.. :censored:
-
Re: UK Shipping by Postcode
Sorry, I missed that seeing that you posted your site for up to date versions
-
Re: UK Shipping by Postcode
Hi Guys,
Cool module this is exactly what I need for a site im developing.
However I have a problem...
The module is installed and seems to be working for most postcodes, however some of the postcodes in the same zone as the working ones dont appear to work and return a 0 cost.
For example PH17 doesnt work while IV48 does work.
But they are in the same Zone so I dont understand where this issue is coming from...
Any ideas and many thanks in advance...
:)
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
AndyVI
Hi Guys,
Cool module this is exactly what I need for a site im developing.
However I have a problem...
The module is installed and seems to be working for most postcodes, however some of the postcodes in the same zone as the working ones dont appear to work and return a 0 cost.
For example PH17 doesnt work while IV48 does work.
But they are in the same Zone so I dont understand where this issue is coming from...
Any ideas and many thanks in advance...
:)
White space in postcode entries will prevent the filter from selecting a postcode.
PH17 is the first postcode entry in the default list... I suspect you might have a space preceding PH17 maybe?
If you continue to have a problem then the module isn't fussy if entries are duplicated so enter it again - Just make sure there are no spaces between commas and postcodes.
If you want to break the lines up to stop the right hand section of the page from being over wide then you can add , &, (with a space preceding the &, which will help to format the layout in the admin but not affect operation.
See the documentation enclosed with the module or goto http://www.zenned.co.uk/uk-shipping-by-postcode-ezp-16.html for the latest update or documented information.
Rgds Mike.
-
Re: UK Shipping by Postcode
Hi Mike,
Thanks for your quick response.
I have thoroughly read the readme and have double checked everything.
I have tried:
removed white space (not working)
removed ampersands and tried on a single line (not working)
Duplicated the offending postcodes like PHxx (not working)
This is very bizzare as other postcodes within the same zone seem to work perfectly.
-------------
When the PH postcodes are used it defaults back to the Zone 1 rate, instead of Zone 2 as it should be.
Any Ideas?
-
Re: UK Shipping by Postcode
:oops: Looks like I might have included a minor bug into the module.
Try the following fix...
Open /includes/modules/shipping/ukpost.php
Locate line 114 which says
$pcode = $str = preg_replace('/\s\s*/', '', $destination_postcode);
Replace with...
$pcode = preg_replace('/\s\s*/', '', $destination_postcode);
Rgds
Mike.
-
Re: UK Shipping by Postcode
UPDATE...
I've now updated the Postcode module with a bug fix plus I've added PAxx postcodes that were overlooked in the original version.
The updated version will be available in the downloads section after it has been reviewed by the Zen team.
If you want the revised version straight away then download it from http://zenned.co.uk/modules/UK_Postcode_Shipping.zip
Enjoy!
-
Re: UK Shipping by Postcode
uuuum doesnt work at all for me
"The delivery/shipping fee cannot be determined at this time"
Do I need to delete all the zones I had previously setup or change my stores zone or something along those lines?
Something to do with Zone Definitions perhaps?
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
caios
uuuum doesnt work at all for me
"The delivery/shipping fee cannot be determined at this time"
Do I need to delete all the zones I had previously setup or change my stores zone or something along those lines?
Something to do with Zone Definitions perhaps?
The message "The delivery/shipping fee cannot be determined at this time" usually means the total Weight or Price of the items in the cart in the cart exceed the *maximum* weight or price value set in the Shipping Table
Try adding a high value like 5000:0.00 as the last value.
If you get a zero (0.00) shipping charge displayed then that was the problem. Change the 0.00 to whatever shipping charge you want to make.. i.e. 5000:50.00
-
Re: UK Shipping by Postcode
Does your mod allow for specific ranges?
For instance - in the IV postcode, Only these ranges charge extra for some couriers:
IV14-IV28,IV30-IV32,IV36,IV40-IV56,IV7,IV9-IV12
Can I set a range, or would I have to enter each one individually?
Also it might be nice if it were possible to add more zones for foreign countries with numeric postcodes (and ranges for them).
I have a CubeCart mod which does this. Am looking to move to Zen - but need such functionality.
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
Z3NN3D
The message "The delivery/shipping fee cannot be determined at this time" usually means the total Weight or Price of the items in the cart in the cart exceed the *maximum* weight or price value set in the Shipping Table
Try adding a high value like 5000:0.00 as the last value.
If you get a zero (0.00) shipping charge displayed then that was the problem. Change the 0.00 to whatever shipping charge you want to make.. i.e. 5000:50.00
Thanks thats great, somethings working now.
Its now says:
UK Postcode (Parcel To: (22 x 50.00Kg))
hahaa uuum
Dont understand!
0.5:2.95,1:3.98,2:5.98,5:7.98,25:8.98,40:15.98,inc-20:0.95
is what we have in our orginal table rate. But for some reason cuting and pasting the above into the postcode table rate doesnt work.
Is it possible that our weights are in g and our orginal table rate has been modified to x1000 to calculate from kg to g?
I know our backend software has the weights in g and not kg.
-
Re: UK Shipping by Postcode
yep, found this code in my other shipping module:
$shipping_weight = $total_weight / 1000;
amoungst other changes........
Would you be able to advise me where I could stick the above code into your code so it all magicly works please? thanks
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
aris
Does your mod allow for specific ranges?
For instance - in the IV postcode, Only these ranges charge extra for some couriers:
IV14-IV28,IV30-IV32,IV36,IV40-IV56,IV7,IV9-IV12
Can I set a range, or would I have to enter each one individually?
Also it might be nice if it were possible to add more zones for foreign countries with numeric postcodes (and ranges for them).
There is currently no functionality in the existing module to work with hyphen separated postcode ranges, nor foreign country numeric postcodes, but you can add Zones for each range of postcodes which would do the same job.
By default, the module comes with support for 4 UK postcode zones. If more are needed then the amount of zones can be increased by editing line 108 $this->num_zones found in /includes/modules/shipping/ukpost.php.
More info on increasing the zones can be found here http://www.zenned.co.uk/uk-shipping-by-postcode-ezp-16.html
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
caios
yep, found this code in my other shipping module:
$shipping_weight = $total_weight / 1000;
amoungst other changes........
Would you be able to advise me where I could stick the above code into your code so it all magicly works please? thanks
Weight is calculated by Zen cart before the shipping module is referenced so you can't stick new code anywhere in the shipping module to modify it.
-
Re: UK Shipping by Postcode
Hi Zenned,
Im still having difficulty with this, I have updated to your "Bug Fixed" version.
However it does not seem to have made any change to the problem we have.
The following postcodes dont seem to be working for me:
PHxx
PAxx
KAxx
All the other ranges are working perfectly..
About my install :
Im working the postage out on a per "item" so have seleted the relevent "item" option in the admin.
I have made incremental increases in the zone 2, 3 and 4 shipping tables so I can see it working, and all seems to be working correctly for most of the postcodes except for the ones ive listed above.
Many Thanks in advance.
(keep up the good work, this is an great addon :)
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
AndyVI
The following postcodes dont seem to be working for me:
PHxx
PAxx
KAxx
All the other ranges are working perfectly..
- What PHP version is your installation using?
- What server type - Win or Unix?
- What Zen Cart version are you running?
- Do you have any other Shipping Modules installed and running in addition to the UK Postcode one?
- What other addon modules are installed?
- Can you paste the content of the Zone 2 Post Codes & the Zone 2 Shipping Table from your installation here and I'll see if I can spot anything that might be causing the issue.
-
Re: UK Shipping by Postcode
Hi Zenned,
Many thanks for your continued support, here are the details of my installation as requested:
What PHP version is your installation using?
PHP Version 5.1.6
What server type - Win or Unix?
Unix X86_64
What Zen Cart version are you running?
Zen Cart 1.3.9h
Database Patch Level: 1.3.9h
Do you have any other Shipping Modules installed and running in addition to the UK Postcode one?
Nope we offer FREE shipping to mainland, so the UKpost is the only shipping module we are using to calculate costs.
What other addon modules are installed?
CEON URI Mapping
Can you paste the content of the Zone 2 Post Codes & the Zone 2 Shipping Table from your installation here and I'll see if I can spot anything that might be causing the issue.
Enable PostCode Method
True
Calculation Method
Item
Tax Class
--none--
Tax Basis
Shipping
Sort Order
0
Zone 1 Post Codes
LEAVE EMPTY
Zone 1 Shipping Table
1:0.00,2:0.00,3:0.00,4:0.00,5:0.00,6:0.00
Zone 1 Handling Fee
0
Zone 2 Post Codes
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,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,Z E3,ZE4,IV1,IV2,IV3,IV4,IV5,IV6,IV7,IV8,IV9,IV10,IV11,IV12,IV13,IV14,IV15,IV16,IV 17,IV18,IV19,IV20,IV21,IV22,IV23,IV24,IV25,IV26,IV27,IV28,IV29,IV30,IV3,IV32,IV3 3,IV34,IV35,IV36,IV37,IV38,IV39,IV40,IV41,IV42,IV43,IV44,IV45,IV46,IV47,IV48,IV4 9,IV50,IV51,IV52,IV53,IV54,IV55,IV56,IV57,IV58,IV59,IV60,IV61,IV62,IV63
Zone 2 Shipping Table
1:15.00,2:17.50,3:20.00,4:24.00,5:30.00,6:36.00
Zone 2 Handling Fee
0
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,TR2 5
Zone 3 Shipping Table
1:25.00,2:27.50,3:30.00,4:34.00,5:40.00,6:46.00
Zone 3 Handling Fee
0
Zone 4 Post Codes
JE1,JE2,JE3,JE4,GY1,GY2,GY3,GY4,GY5,GY6,GY7,GY8,GY9,GY10
Zone 4 Shipping Table
1:35.00,2:37.50,3:40.00,4:44.00,5:50.00,6:56.00
Zone 4 Handling Fee
0
Many thanks in advance...
PS its only the PHxx, PAxx, KAxx postcodes that are not working, all the others are working perfectly.
Also have tried with the default module settings ( with & ampersand) and checked thoroughly for any white space.
Kind Regards
Andy
-
Re: UK Shipping by Postcode
Sorry to take a while to get back, I'm very busy with client work which has to take priority over free module support :smile:
A quick inspection of your settings show that there are few spaces after commas.. i.e. , PA37, and one or two between postcodes i.e. ,IV3 3,
Not that they should (in theory) affect PH, PA, or KA postcodes as reported, but they are glaring errors which might (or not) have an impact on module operation, so need to be fixed.
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by 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/showth...964#post953964
-
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
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
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
-
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
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
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...
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
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
Quote:
Originally Posted by
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.
-
Re: UK Shipping by Postcode
Does anyone have this module working successfully with Google Checkout?
-
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
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
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');
-
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
-
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
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
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
-
Re: UK Shipping by Postcode
Sorry for the misunderstanding, it's set to 1, without the kg. but still not getting an amount.
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
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
-
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.
-
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
-
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?ma...roducts_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
-
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.
-
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.
-
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).
-
Re: 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
-
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
-
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
-
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
-
Re: UK Shipping by Postcode
Hi, anyone reading this at the moment? .....
-
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
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
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
-
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
-
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:
-
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.
-
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
-
Re: UK Shipping by Postcode
Hi,
I hope you can help me. I am working on 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?
-
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
Quote:
Originally Posted by
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');
-
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!
-
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!
-
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?
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
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?
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
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?
-
Re: UK Shipping by Postcode
Quote:
Originally Posted by
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