【发布时间】:2018-02-07 13:15:33
【问题描述】:
我在 magento 中启用了表费率运输方式。现在在购物车页面中,我得到了一个名为“估计运费和税金”的部分。 现在在本节中,当我选择一个国家并单击估计时,我会根据我在
中通过 magento 管理面板上传的 tablerates.csv 文件获得运费系统->配置->销售->送货方式->表费率
section.Now,当我选择费率并单击更新总计时,总计没有得到更新。我在我的实时网站上遇到了这个问题。 然后我在本地安装了 magento 并执行相同的过程,当我单击更新总计部分时,总计会更新。 然后我检查了更新总按钮的控制器操作。包含按钮的表单的动作是
action="http://{{site-url}}/checkout/cart/estimateUpdatePost/"
现在,当我比较本地和现场的estimateUpdatePost 操作时,发现内容是相同的
localhost 上的 estimateUpdatePost 操作的内容
public function estimateUpdatePostAction()
{
$code = (string) $this->getRequest()->getParam('estimate_method');
if (!empty($code)) {
$this->_getQuote()->getShippingAddress()->setShippingMethod($code)/*->collectTotals()*/->save();
}
$this->_goBack();
}
estimateUpdatePost 实时操作的内容
public function estimateUpdatePostAction()
{
$code = (string) $this->getRequest()->getParam('estimate_method');
if (!empty($code)) {
$this->_getQuote()->getShippingAddress()->setShippingMethod($code)/*->collectTotals()*/->save();
}
$this->_goBack();
}
现在两者的功能是一样的。我不明白为什么总数没有实时更新。谁能帮助我朝着正确的方向前进。
【问题讨论】:
标签: magento-1.9 cart