除非登录,否则WooCommerce不允许将产品添加到购物车 [英] WooCommerce Does Not Allow Adding Products To Cart Unless Logged In

查看:415
本文介绍了除非登录,否则WooCommerce不允许将产品添加到购物车的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该问题最近发生-如果我未登录Wordpress,则无法将产品添加到WooCommerce购物车中.它会按原样重定向到购物车页面,但显示购物车已空".当我以任何角色的用户身份登录时,效果都很好.我四处搜寻,发现了该线程: http://wordpress.org /support/topic/plugin-woocommerce-cart-brokennot-adding-products

This problem occurred recently - if I am not logged into Wordpress, I am not able to add products to my WooCommerce cart. It redirects to the cart page as it should but shows 'Cart Empty'. Works perfectly when I am logged in as a user in any role. I searched around and found this thread: http://wordpress.org/support/topic/plugin-woocommerce-cart-brokennot-adding-products

我尝试使用自定义php.ini文件更改会话文件夹,但问题仍然存在.我使用Duplicator并在本地主机上设置了一个实例,该实例在没有问题的情况下工作,因此告诉我问题出在主题或插件之外.托管还有哪些其他问题可能导致这种情况?

I've tried changing my session folder with a custom php.ini file but the problem is still persisting. I used Duplicator and set up an instance on my localhost - where it works without issues, so that tells me the problem isn't with the theme or the plugins. What other issues with hosting could be causing this?

推荐答案

对我来说,该错误是由Rackspace的"Varnish"脚本引起的.这是他们使用的服务器端缓存工具.我没有比这更多的细节了.但是一旦我通知Rackspace,他们就很快修复了该问题.

For me the error was caused by Rackspace's "Varnish" script. it's a server-side caching tool that they use. I don't have more details than than. but once I alerted Rackspace, they fixed it pretty fast.

这篇关于除非登录,否则WooCommerce不允许将产品添加到购物车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆