下订单后,无法将产品添加到购物车.Magento一直告诉我:无法将商品添加到购物车.
另外,如果我尝试重新排序,我收到一个错误:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1";i:1;s:2954:"#0 C:\wamp\www\ronamagento\trunk\lib\Zend\Db\Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
Run Code Online (Sandbox Code Playgroud)
如果我退出然后重新登录,一切正常,直到我发出另一个订单.
任何的想法?
----------------------编辑--------------------------
The错误似乎来自sales/order/controllers/OrderController.php,在$ cart-> save()的重新排序函数中;
和添加功能中的Checkout/controllers/CartController.php中的相同代码
看起来像我的购物车对象已损坏或其他东西.
----------------------编辑--------------------------
----------------------编辑#2 ------------------------- -
好吧,如果我评论行$ this-> getQuote() - > collectTotals(); 在Checkout/model/cart.php的保存功能中它似乎工作但没有显示该项目已添加到我的购物车.然后我放回代码行,一切正常.看起来像collectTotals()中出了问题......
---------------------- EDIT#2 ------------- -------------
谢谢!
我是opencart的新手.有没有可用于opencart的调试工具?.i不知道opencart执行的控制流程.所以我想把断点,步入代码,看变量值.请提前提及.thanks.