如何更新结帐页面中的运费?

时间:2017-07-29 10:13:33

标签: magento magento-1.9

我想在发货信息流程后更新结帐页面上的运费。

$rates = Mage::getModel("checkout/session")->getQuote()->getShippingAddress()->getAllShippingRates();
        $shippingprice = 10;
        foreach($rates as $rate){
            $rate->setShippingAmount($shippingprice);
            $rate->setBaseShippingAmount($shippingprice);
            $rate->save();
        }

0 个答案:

没有答案