Page 1 of 2 12 LastLast
Results 1 to 10 of 59

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Porthleven, Cornwall, UK
    Posts
    45
    Plugin Contributions
    1

    Default Re: UK Shipping by Postcode

    Quote Originally Posted by gmak View Post
    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.
    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');

  2. #2
    Join Date
    Jul 2007
    Posts
    14
    Plugin Contributions
    0

    Default 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

  3. #3
    Join Date
    Jul 2011
    Posts
    106
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jun 2009
    Location
    Porthleven, Cornwall, UK
    Posts
    45
    Plugin Contributions
    1

    Default Re: UK Shipping by Postcode

    Quote Originally Posted by 4jDesigns View Post
    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

  5. #5
    Join Date
    Jul 2011
    Posts
    106
    Plugin Contributions
    0

    Default Re: UK Shipping by Postcode

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

  6. #6
    Join Date
    Jun 2009
    Location
    Porthleven, Cornwall, UK
    Posts
    45
    Plugin Contributions
    1

    Default Re: UK Shipping by Postcode

    Quote Originally Posted by 4jDesigns View Post
    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

  7. #7
    Join Date
    Jul 2011
    Posts
    106
    Plugin Contributions
    0

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

  8. #8
    Join Date
    Jul 2011
    Posts
    106
    Plugin Contributions
    0

    Default 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

  9. #9
    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');

  10. #10
    Join Date
    Dec 2011
    Posts
    287
    Plugin Contributions
    0

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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Shipping to postcode in Canada
    By Skyland in forum Addon Shipping Modules
    Replies: 1
    Last Post: 21 Mar 2014, 07:09 PM
  2. Basic postcode-based shipping?
    By Lyte in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 16 May 2010, 05:09 PM
  3. Shipping by Postcode
    By billett in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 6 Oct 2009, 09:31 AM
  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

Posting Permissions

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