Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Closed Thread
Results 1 to 9 of 9

Thread: Shipping Module - doesnt support UK postcodes

  1. #1
    widgetuk's Avatar
    widgetuk is offline Junior Member widgetuk is on a distinguished road
    Join Date
    Jun 2008
    Location
    Derbyshire, England, UK.
    Posts
    12

    Default Shipping Module - doesnt support UK postcodes

    Hi all, I've been having a chat with Bagi about this problem, and he's explained to me that there's an inherent problem with UK postcodes, in that they use letters aswell as numbers in the 'zipcode', eg. M1 1AA. After much debate, we couldnt find a solution, so I thought I'd throw the idea open to the forum, for any other ideas people may have...

    Basically, the Standard Shipping module in Boss Cart JV does not support UK postcodes. As such, one cannot offer different postal rates based on post code, but only based on weight for UK shipments.

    Apparently it would be very difficult (perhaps impossible?) to make the Standard Shipping module support UK postcodes because of the Letters in the code - php logical operator can only compare numbers, not letters.

    So I wondered, does anyone have any experience of any other shopping cart that does support UK postcodes? And if so, can we learn anything from that to either modify the current Boss Cart JV shipping module, or, add a new module for us poor people in the UK who have alphanumeric postcodes and not numeric. ?!?!?

    I'd be interested to hear any ideas people have on this, because, after all, some couriers in the UK actually charge more for shipments to certain remote postcodes, so, it would be essential for anyone selling to UK people to have this facility built-in to their shipping section of their ecommerce enabled site.

    Cheers, Jon

  2. #2
    Bagi Zoltán's Avatar
    Bagi Zoltán is offline Boss Cart consultant Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of
    Join Date
    Feb 2007
    Location
    Veszprém, Hungary
    Posts
    1,225

    Default

    I was thinking on this problem a little in the past minutes and i have an idea. So it is based on a php function which would transform the zip string into numbers. For instance if the input is abcd the output would be 1234 this way. This way they can be compared, but as i see the UK zip codes have different length. I will try to find out something, which will work.

  3. #3
    widgetuk's Avatar
    widgetuk is offline Junior Member widgetuk is on a distinguished road
    Join Date
    Jun 2008
    Location
    Derbyshire, England, UK.
    Posts
    12

    Default

    Sounds like some sort of idea yes. I suppose it would need to be defined as to how exactly the administrator of the cart would like this to work.

    eg. Should there be a free text box where the administrator could list full UK postcodes separated by ";" for example

    Code:
    m1 1aa; m1 1ab; m1 1ac; m1 2a;
    Or would this be too times consuming supposing the admiministrator needed to have postcodes from several ranges... for instance if he wanted all postcode regions beginning with "m1 1". So it would be ideal if the script were smart enough to know a range of postcodes from a single postcode, for example:

    Code:
    m1 1; m2 2; m3 3bw
    Where the first two entries are ranges, but the final one is a specific code.

    Not sure if this would work with Bagi's suggestion to convert to numbers?

    Something else I thought of, which might be easier? Is why not move away from the zipcode and take it to the town/city level. So have the shipping variable to be based upon town/city entered in the postal address as opposed to postcode? If the the city in the shipping address matches that entered in the shipping module, then it's selected as a valid shipping method. For example;

    Code:
    chesterfield; sheffield;
    This could be slightly better, because obviously towns cover large areas and ranges of postcodes. So it gets around the problem if the above method of postcode ranges doesnt work?!

    Hmm lots of things to consider I guess.

  4. #4
    Bagi Zoltán's Avatar
    Bagi Zoltán is offline Boss Cart consultant Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of
    Join Date
    Feb 2007
    Location
    Veszprém, Hungary
    Posts
    1,225

    Default

    Yesterday before falling asleep i think i figured out the best way of comparing the zip code with specific ranges. I think that the other suggestion about the cities could be better. As i can estimate my current tasks i would say that the solution will be ready in 2 weeks.
    Thank you

  5. #5
    widgetuk's Avatar
    widgetuk is offline Junior Member widgetuk is on a distinguished road
    Join Date
    Jun 2008
    Location
    Derbyshire, England, UK.
    Posts
    12

    Default

    Bagi, the more i thought about it last night the more i started to think perhaps cities would be simpler too. It's not obviously anywhere near as accurate (because postcodes go down to the sub-street level), but, it would at least give administrators some ability to charge for varied UK postage for different geographical areas. To avoid typing mistakes from the user confusing the script, the town/city in the billing and shipping forms could be a drop-down selection box of all UK town/cities maybe?

  6. #6
    Bagi Zoltán's Avatar
    Bagi Zoltán is offline Boss Cart consultant Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of
    Join Date
    Feb 2007
    Location
    Veszprém, Hungary
    Posts
    1,225

    Default

    The problem of the cities is the typo mistakes. If somebody could not write the name of the city correctly there will be problem when time come to calculate the shipping price. I still did not have time to map the patterns of the UK zip codes, but i will do it soon. At least i hope

  7. #7
    widgetuk's Avatar
    widgetuk is offline Junior Member widgetuk is on a distinguished road
    Join Date
    Jun 2008
    Location
    Derbyshire, England, UK.
    Posts
    12

    Default

    Bagi, I figured that the city could be a drop-down selection box. This means the users cannot possibly type it incorrectly

  8. #8
    Bagi Zoltán's Avatar
    Bagi Zoltán is offline Boss Cart consultant Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of
    Join Date
    Feb 2007
    Location
    Veszprém, Hungary
    Posts
    1,225

    Default

    I see, but JV script is used worldwide so if i substitute the input form labelled as city with a select object lising all of the UK towns the script can not be used in Australia for instance. Of course the script can be customized in accordance your need, if you have the willingness to compile a list of every UK town i will help you implement the select drop down box.

  9. #9
    craftyclicks is offline Junior Member craftyclicks is on a distinguished road
    Join Date
    Jun 2009
    Location
    Maidenhead, UK
    Posts
    8

    Default full UK postal town database

    Quote Originally Posted by Bagi Zoltán View Post
    I see, but JV script is used worldwide so if i substitute the input form labelled as city with a select object lising all of the UK towns the script can not be used in Australia for instance. Of course the script can be customized in accordance your need, if you have the willingness to compile a list of every UK town i will help you implement the select drop down box.
    Hi, this thread is a bit old, but this info might still be helpful.

    A free database of all UK postal towns and traditional county names - Association of British Counties. There was one or two towns missing, I have a corrected list (I'm not sure if the one on ABC site has been fixed yet). Drop me an email if interested. We used this list as one of the data sources while compiling our address lookup webservice, so I can confirm that it is good and has been cross-checked against the Royal Mail PAF database.

    Also there are a number of companies that supply detailed postcode and address data for a modest fee (ours included).... but that would be blowing our horn a bit too much ;-)

    Adam.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124