Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Problem with "The shipping rate cannot be determined at this time"

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

Locked

Views: 1,459

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
25 Sep 2010, 8:32 AM
#1
stefan_l avatar

stefan_l

New Zenner

Join Date:
Sep 2010
Posts:
5
Plugin Contributions:
0

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?

25 Sep 2010, 1:16 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

25 Sep 2010, 2:43 PM
#3
stefan_l avatar

stefan_l

New Zenner

Join Date:
Sep 2010
Posts:
5
Plugin Contributions:
0

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

Hi Ajeh and thanks for your answer.

Ajeh:

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.

Ajeh:

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?

25 Sep 2010, 4:39 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!

25 Sep 2010, 6:06 PM
#5
stefan_l avatar

stefan_l

New Zenner

Join Date:
Sep 2010
Posts:
5
Plugin Contributions:
0

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

Ajeh:

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?

25 Sep 2010, 6:28 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

30 Sep 2010, 7:41 PM
#7
stefan_l avatar

stefan_l

New Zenner

Join Date:
Sep 2010
Posts:
5
Plugin Contributions:
0

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

Stefan L:

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.