我已经写了6个小时了。我想删除运输表格,删除运输估计,并在总数中有一个固定的费用。
我已经试过了http://www.danneh.org/2010/08/adding-shipping-costs-to-the-cart-automatically-in-magento/但是没有用,有人能确认这是否有效,或者给一个更好的主意吗?
谢谢!
按照以下步骤设置装运方法在您的saveBillingAction()
和saveShippingAction()
在这种情况下
if (!isset($result['error']))
call $this->saveShippingMethodAction();
function and
输入代码
public function saveShippingMethodAction()
{
$this->_expireAjax();
if ($this->getRequest()->isPost()) {
$data = $this->getRequest()->getPost('shipping_method', 'flatrate_flatrate');
$result = $this->getOnepage()->saveShippingMethod($data);
$this->getResponse()->setBody(Zend_Json::encode($result));
}
}
在保存装运方法步骤中。