Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2010
    Posts
    5
    Plugin Contributions
    0

    Default Problem with "The shipping rate cannot be determined at this time"

    I have setup the shipping module to zones, Zone 1 for US and all other countries in Zone 2. Everything works fine, but in Zone 2 I have shipping rates up to a value of $150, over that amount the program returns the classic "The shipping rate cannot be determined at this time".

    Now, when this happens I would like to display an error message that says call or email me for shipping costs AND stop the current checkout. Default the checkout continues.

    Anyone here that has a solution to this problem?
    Last edited by Stefan L; 25 Sep 2010 at 09:37 AM.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problem with "The shipping rate cannot be determined at this time"

    You need to set a value for what happens over 150.00 ...

    Add on to the end:
    10000:15.75

    for $15.75 or add on a percentage:
    10000:10%

    for 10% to be used ...

    Without a value, it does not know what to calculate for the shipping ...

    If you do not want that calculation made over $150.00 you would need to customize the code ...

    You can change the error message by searching for it in the language files via the Tools ... Developers Tool Kit ...
    /includes/languages/english/modules/shipping/zones.php

    Line #27 : define('MODULE_SHIPPING_ZONES_UNDEFINED_RATE', 'The shipping rate cannot be determined at this time');
    NOTE: while this will prevent the completion of the order ... when you manually complete the order over the phone, the customer's shopping cart will still have all of the products still in it ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Sep 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Problem with "The shipping rate cannot be determined at this time"

    Hi Ajeh and thanks for your answer.

    Quote Originally Posted by Ajeh View Post
    You need to set a value for what happens over 150.00 ...

    Add on to the end:
    10000:15.75

    for $15.75 or add on a percentage:
    10000:10%

    for 10% to be used ...

    Without a value, it does not know what to calculate for the shipping ...
    That part I know.

    Quote Originally Posted by Ajeh View Post
    If you do not want that calculation made over $150.00 you would need to customize the code ...

    You can change the error message by searching for it in the language files via the Tools ... Developers Tool Kit ...
    /includes/languages/english/modules/shipping/zones.php

    Line #27 : define('MODULE_SHIPPING_ZONES_UNDEFINED_RATE', 'The shipping rate cannot be determined at this time');
    NOTE: while this will prevent the completion of the order ... when you manually complete the order over the phone, the customer's shopping cart will still have all of the products still in it ...
    That’s what I want. No calculation over $150 AND prevent the completion of the order. But I can still continue checkout (testing with COD, no credit card). I found this in when searching /includes/modules/shipping/zones.php

    Line #270 :
    if ($shipping == -1) {
    $shipping_cost = 0;
    $shipping_method = MODULE_SHIPPING_ZONES_UNDEFINED_RATE;
    Can I put in some sort of redirection here?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problem with "The shipping rate cannot be determined at this time"

    A redirect for what?

    If you cannot get past the checkout_shipping you cannot place the order ...

    Did you try changing the define for:
    MODULE_SHIPPING_ZONES_UNDEFINED_RATE

    To something like:
    Call Me!
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Sep 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Problem with "The shipping rate cannot be determined at this time"

    Quote Originally Posted by Ajeh View Post
    A redirect for what?

    If you cannot get past the checkout_shipping you cannot place the order ...

    Did you try changing the define for:
    MODULE_SHIPPING_ZONES_UNDEFINED_RATE

    To something like:
    Call Me!
    I can go past checkout_shipping. That's what I don't like. And yes, I changed the define to call or email me. I'm using COD for testing, is there a difference compared to CC?

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problem with "The shipping rate cannot be determined at this time"

    I see what you are saying ...

    This would have to be customized to turn off the Zone Rate shipping module for orders over $150.00 so that there are no shipping modules ...

    This would prevent a selection from being made to stop the checkout ...

    You need to customize the module to set the:
    $this->enabled

    to false when the total is >= 150.00 ...

    You might try a search on:
    $this->enabled

    for examples on how this type of customization can be done ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Sep 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Problem with "The shipping rate cannot be determined at this time"

    Quote Originally Posted by Stefan L View Post
    I can go past checkout_shipping. That's what I don't like. And yes, I changed the define to call or email me. I'm using COD for testing, is there a difference compared to CC?
    Ajeh, thanks for your answers. You were correct in your statement. I can't go past checkout_shipping when I was using the PayPal Express Checkout option, but when I used COD (Cash On Delivery) I could. As I'm not intending to use COD, the problem is null.

 

 

Similar Threads

  1. The shipping rate cannot be determined at this time
    By buonamica in forum Addon Shipping Modules
    Replies: 0
    Last Post: 3 Mar 2011, 07:46 PM
  2. "Shipping rate cannot be determined at this time"
    By boy1da in forum General Questions
    Replies: 1
    Last Post: 22 Oct 2010, 11:59 PM
  3. The shipping rate cannot be determined at this time
    By peewhy in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 18 Aug 2008, 02:26 AM
  4. (UK) The shipping rate cannot be determined at this time
    By peewhy in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 10 Mar 2008, 08:13 AM
  5. The shipping rate cannot be determined at this time
    By beast666 in forum Addon Shipping Modules
    Replies: 2
    Last Post: 26 May 2007, 07:21 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR