Page 6 of 6 FirstFirst ... 456
Results 51 to 53 of 53
  1. #51
    Join Date
    Jul 2006
    Location
    UK
    Posts
    130
    Plugin Contributions
    0

    Default 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!


    Claire

  2. #52
    Join Date
    Apr 2010
    Posts
    232
    Plugin Contributions
    0

    Default 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?

  3. #53
    Join Date
    Nov 2012
    Posts
    12
    Plugin Contributions
    0

    Default 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 View Post
    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');

 

 
Page 6 of 6 FirstFirst ... 456

Similar Threads

  1. Shipping based on postcode for Australia; different shipping for different items
    By chillout_buddha in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 6 Nov 2011, 11:09 AM
  2. Shipping by Postcode
    By billett in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 6 Oct 2009, 09:31 AM
  3. Shipping according to postcode & item.
    By tomtailford in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 19 Jun 2008, 03:54 PM
  4. UK Shipping by postcode
    By schoolboy in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 29 Mar 2007, 04:13 PM

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
  •