magento worldpay 不重定向
我已从 magento 1.4.1.1 升级到 magento 1.5.1.1,并且安装了 Phoenix Worldpay 扩展。在结帐时,购物车在第 5 步之后不再重定向到 worldpay。
如果我转到 /worldpay/processing/redirect,我会收到错误:找不到处理订单
这是从以下位置抛出的:
$session = $this->_getCheckout();
$order = Mage::getModel('sales/order');
$order->loadByIncrementId($session->getLastRealOrderId());
if (!$order->getId()) {
Mage::throwException('No order for processing found');
}
有什么想法吗?
I've upgraded from magento 1.4.1.1 to magento 1.5.1.1 and I have the Phoenix Worldpay extension installed. When in the checkout, the cart no longer redirects to worldpay after step 5.
If I go to /worldpay/processing/redirect, I get the error: No order for processing found
This is thrown from:
$session = $this->_getCheckout();
$order = Mage::getModel('sales/order');
$order->loadByIncrementId($session->getLastRealOrderId());
if (!$order->getId()) {
Mage::throwException('No order for processing found');
}
Any ideas why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
抛出此错误是因为未加载订单,请检查会话是否具有此扩展所需的数据
this error is thrown cause no order is loaded, check if the session has the data this extension needs
我找到了解决方案,这不是插件的问题,实际上是 checkout.xml 布局文件的问题。我更换了一个全新的版本,效果很好
I found the solution, it's not the plugin, it's in fact a problem with the checkout.xml layout file. I replaced it with a brand new version and it worked fine