i have created a shipping method extension in which shipping rate is correctly and even error message is also set when it conditions are sattisfied.

My question is when i am trying to set a the error message it is pulling the default message "Sorry, no quotes are available for this order at this time."

Below is my code

$result = Mage::getModel('shipping/rate_result');
$show = true;
if($show && $price > 0 && !$this->_error){
    $method = Mage::getModel('shipping/rate_result_method');
    $error = Mage::getModel('shipping/rate_result_error');

        $msg = "Shipping rate cannot be calculated.";
        $msg = $this->getConfigData('specificerrmsg');
return $result;

2 Answers 2


For the googlers landing on this page, here is the solution :

To always display the carrier, Magento is looking for the showmethod attribute in your carrier configuration. You should add this code in your config.xml :

<?xml version="1.0" encoding="UTF-8"?>

With that, your error message should display.

  • Thanks! Your answer is correct. I had the same problem and this fix it.
    – Xus
    May 6, 2015 at 10:15
  • @hellimac thank you for sharing valuable information Feb 7, 2017 at 8:54

Code for Error Message:

$message = $this->__('Got an error');

For this case may be you can check your config.xml:

<specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.