Magento:在“下订单”之前结帐重定向到购物车被按下(应该去payal)
这是我在 StackOverflow 上的第一篇实际帖子。我经常来这里,因为你们总是解决我的问题!
我们在 Magento 网站上的结帐车中遇到问题。
我们有 Magento 版本 1.4.1.1,并使用一页结帐和 Paypal 标准结帐。
当客户向购物车添加大量不同的产品(例如 7 个或更多)时,就会出现问题。当他们点击“下订单”按钮时,他们应该被带到贝宝来完成订单。但相反,它们会被重定向到购物车(默认失败 URL)。
当您购买一些商品或许多相同商品时,结帐工作正常。当您购买多个不同的商品时,它不起作用。
任何帮助/建议/解决方案/任何东西!将不胜感激!
谢谢, 希瑟
this is my first actual post on StackOverflow. I'm on here quite often because you guys always solve my queries!
We have a problem in a checkout cart on a Magento site.
We have Magento version 1.4.1.1 and are using the one page checkout and Paypal Standard Checkout.
The problem appears when a customer adds lots of different products to their cart (say 7 or more). When they click on the 'Place Order' button, they should be taken to paypal to complete the order. But instead they are redirected to the cart (the default failure URL)
The checkout works fine when you buy a few items or many of the same item. It doesn't work when you buy multiple different items.
Any help/advice/solution/anything! would be much appreciated!
Thanks,
Heather
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我经历过这个问题...我们运行 PHP 版本 5.2.10,Magento 版本。 1.3.2.4 并使用 Paypal Website Standard PRO...
我们一直在优化服务器安装 APC 并调整 MySQL...卸载/重新安装 APC 以换出使用自旋锁的 APC 版本...
完成这些工作并运行后端到端测试 Paypal 集成失败...或更重要的是,单击“下订单”后,我们被重定向到购物车页面...
我查看了按“下订单”后发送的标头,发现服务器发出 500 错误,并且由于 Magento 是生产配置,因此不会显示此错误,浏览器会重定向到引荐来源网址,在本例中为购物篮页面...
我们的 PHP 错误会记录到 Apache error_log 中,并可以查看此错误我发现了以下条目:
PHP Fatal error: Class 'DOMDocument' not found in /home/user/htdocs/lib/Zend/Feed/Abstract.php on line 101
我进一步审查了这一点并发现了 DOMDocument 并发现了一个帖子,指出需要“PHP-XML 模块”...
由于我们一直在安装/安装软件,所以我们运行了“yum install php-xml”...
这解决了问题!这很奇怪,因为这确实有效,所以这意味着这不会是问题......
I to expereinced this issue... We run PHP Version 5.2.10, Magento ver. 1.3.2.4 and use Paypal Website Standard PRO...
We have been optimising the server install APC and tuning MySQL... Uninstalling / reinstalling APC to swap out a version of APC that use spin locks...
After completing these works and running an end to end test the Paypal integration failed to work... Or more to the point on clicking "Place Order" we were redirected to the cart page...
I reviewed the headers sent after pressing "Place order" and found that a 500 error was issued by the server and as Magento is a production configuration this error is not shown and the browser is redirected to the referrer, in this case the basket page...
Our PHP errors are logged to our Apache error_log and on view this I found the following entries:
PHP Fatal error: Class 'DOMDocument' not found in /home/user/htdocs/lib/Zend/Feed/Abstract.php on line 101
I reviewed this further and discovered DOMDocument and found a post stating that the "PHP-XML Module" is required...
As we had been installing / installing software we ran "yum install php-xml"...
This resolved the issue!!! This is odd as this did work so implying this would not be the issue...
还有一些选项/区域需要考虑...
我经历过繁忙的 Magento 安装,其中包含大量产品和订单,在单击“下订单”时需要很长时间才能重定向到 Paypal。这可能是您的实际问题,升级是前进的方向,尝试升级到 1.4.2.0(最终的 1.4 稳定版本)...但通常在这种情况下,该过程将在长时间等待后完成(60 秒或更长时间!!!) ...
当您有很多商品时,您的结帐重定向到购物车页面很可能是超时问题。当转移到支付网关页面时发生错误时,Magento 会从结帐提交重定向回购物车,因此页面超时或 PHP 内存不足将导致您被重定向回购物车...
您应该检查:-
Apache: “超时”通常设置为 120(秒)左右,考虑增加
PHP:“max_execution_time”18000(秒)- Magento 友好的数字
还可以尝试增加 .htaccess 文件中的 PHP 设置“memory_limit”...设置 64、128、256 实际上不应该增加超过 256。
还开始记录 yopur PHP 错误:log_errors
希望这会有所
帮助我原来的解决方案显然不正确,因为只有当您的购物车中有多个产品时才会发生失败......
A few more options / areas to look at...
I have experencied busy Magento installs with lots of products and orders, taking an extended amount of time to redirect to Paypal on clicking "Place Order". This is probably your actual problem and upgrading is the way forward, try upgrading to 1.4.2.0 (final 1.4 stable release)... but normally in this circumstance the process would complete after an extended wait (60sec long and more!!!)...
The fact that your checkout redirects to the cart page when you have many items may well be a timeout issue. Magento redirects back to cart from checkout submit when an error occures in the transfer to payment gateway page, so the page timing out or PHP running out of memory would result in you being redirected back to cart...
You should check:-
Apache: "Timeout" normally set at around 120 (secs) consider increasing
PHP: "max_execution_time" 18000 (secs) - Magento friendly figure
Also try increasing PHP setting "memory_limit" in the .htaccess file... setup 64, 128, 256 really increasing past 256 should not be an required.
Also start logging yopur PHP errors: log_errors On
Hope this helps
P.s. My original solution is clearly not correct as your failure only happens when you have multiple products in your cart...