Вот реализация, которую я сделал.Это стандартное переопределение (http://inchoo.net/ecommerce/magento/how_to_override_magento_model_classes/). Я сделал это таким образом, чтобы не слишком углубляться в переопределяющую систему.
class Your_Company_Model_Address_Total_Shipping extends Mage_Sales_Model_Quote_Address_Total_Shipping
{
/**
* Collect totals information about shipping
*
* @param Mage_Sales_Model_Quote_Address $address
* @return Mage_Sales_Model_Quote_Address_Total_Shipping
*/
public function collect(Mage_Sales_Model_Quote_Address $address)
{
parent::collect($address);
$method = $address->getShippingMethod();
if ($method) {
foreach ($address->getAllShippingRates() as $rate) {
if ($rate->getCode()==$method) {
$shippingDescription = $rate->getMethodTitle();
if (stripos($shippingDescription, ",") > -1)
$shippingDescription = substr($shippingDescription, 0, stripos($shippingDescription, ","));
$address->setShippingDescription(trim($shippingDescription, ' -'));
break;
}
}
}
return $this;
}
}