每当我尝试在Magento后端发票时,我都会收到以下错误:
Invalid method Mage_Sales_Model_Order_Invoice::roundPrice(Array
(
[0] => 240
[1] => including
)
)
跟踪:
#0 /var/www/magento/app/code/core/Mage/Sales/Model/Order/Invoice/Item.php(286): Varien_Object->__call('roundPrice', Array)
#1 /var/www/magento/app/code/core/Mage/Sales/Model/Order/Invoice/Item.php(286): Mage_Sales_Model_Order_Invoice->roundPrice(240, 'including')
#2 /var/www/magento/app/code/core/Mage/Sales/Model/Order/Invoice/Total/Subtotal.php(53): Mage_Sales_Model_Order_Invoice_Item->calcRowTotal()
#3 /var/www/magento/app/code/local/Mage/Sales/Model/Order/Invoice.php(501): Mage_Sales_Model_Order_Invoice_Total_Subtotal->collect(Object(Mage_Sales_Model_Order_Invoice))
#4 /var/www/magento/app/code/core/Mage/Sales/Model/Service/Order.php(139): Mage_Sales_Model_Order_Invoice->collectTotals()
#5 /var/www/magento/app/code/core/Mage/Adminhtml/controllers/Sales/Order/InvoiceController.php(86): Mage_Sales_Model_Service_Order->prepareInvoice(Array)
#6 /var/www/magento/app/code/core/Mage/Adminhtml/controllers/Sales/Order/InvoiceController.php(177): Mage_Adminhtml_Sales_Order_InvoiceController->_initInvoice()
#7 /var/www/magento/app/code/local/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_Sales_Order_InvoiceController->newAction()
#8 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('new')
#9 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /var/www/magento/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#11 /var/www/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#12 /var/www/magento/index.php(87): Mage::run('', 'store')
#13 {main}
如果有帮助,这里是item.php:http://pastebin.com/HJHb7YEv
以下是开发网站:http://bit.ly/1mAxK2a
该网站正在AWS上运行Magento 1.8.1,其主题名为metrostore来自themeforest。
我不确定是什么导致这种情况,但我注意到网站的产品搜索页面上的价格滑块显示的价格超过了第二个小数点,而不是向上或向下舍入到最近的便士。
任何人都知道这里出了什么问题?
提前感谢您的任何帮助:)
答案 0 :(得分:0)
您似乎已将销售模块覆盖到本地。请尝试重命名或禁用它,然后再次检查而不覆盖销售模块。如果它工作正常,那么你需要修复Overridden模块。