Hi there,
I'm working on some tweak for the worldquote module, and one of mofification I would like to do is to return an error when there are no rules that match the customer address... (ATM it return 0$ quote).
I don't find a function that allow to return an error, I find that I have to return the $quote[] array like that :
<?php
$quotes
[] = array('rate' => $rate, 'format' => uc_currency_format($rate), 'option_label' => $rule->name);
?>But I'm obliged to return an amount etc...
How can I just return an custom error message and so, don't allow customer to continue his shipment ?



My thought would be: how does the shipping module know no quotes have been calculated, then recreate that state as an "error!" since it does not let you continue without having quotes ...