简体   繁体   English

Woocommerce不会将产品添加到购物车

[英]Woocommerce won't add products to cart

I'm not sure what I did to break this because it was working fine for a while but I can no longer add products to the WooCommerce cart in the site I'm working on. 我不确定该怎么做,因为它可以正常工作一段时间,但是我无法再将产品添加到我正在工作的网站的WooCommerce购物车中。 On every attempt I get the "Please choose product options" message in return. 每次尝试时,我都会收到“请选择产品选项”消息。

I have a selected price for each variable yet it still doesn't work. 我为每个变量都选择了一个价格,但仍然无法正常工作。 I'm thinking it could have something to do with the quantity selector of that could possibly not be going through. 我在想它可能与数量选择器有关,可能无法通过。

There may also be a conflict with some jQuery libraries and I have been told to check for errors but I have tried countless times to approach this and I just can't find the solution and this really needs to be fixed as soon as possible. 某些jQuery库也可能存在冲突,有人告诉我检查错误,但是我尝试了无数次来解决这个问题,但我找不到解决方案,因此确实需要尽快解决。

Any information or help anyone can provide would be greatly appreciated. 任何人都可以提供的任何信息或帮助,将不胜感激。

Here's an example page of a product to test it http://www.coreytegeler.com/bolivares/shop/marquez-button-down-cardigan-2/ 这是测试产品的示例页面http://www.coreytegeler.com/bolivares/shop/marquez-button-down-cardigan-2/

I had the same problem and fixed it. 我有同样的问题,并已解决。 It was a caching issue on my host. 这是我主机上的缓存问题。 Once they excluded certain sessions/cookies to be cached (on server side) all started to work again. 一旦它们排除了要缓存的某些会话/ cookie(在服务器端),所有会话/ cookie都将再次开始工作。

Did it work okay before you upgraded to the latest version of Woocommerce? 在升级到最新版本的Woocommerce之前,它工作正常吗?

<!-- WooCommerce Version -->
<meta name="generator" content="WooCommerce 2.0.3" />

Woo recently did a major upgrade to their ecommerce engine, and it may need tweaking to work with your current theme. Woo最近对其电子商务引擎进行了重大升级,可能需要进行调整才能使用您当前的主题。

One thing you can test is to temporarily switch to a different theme which is known to work with the up-to-date woocommerce, eg http://www.woothemes.com/products/mystile/ which is a free theme from the Woo folks themselves. 您可以测试的一件事是暂时切换到已知可以与最新woocommerce一起使用的主题,例如http://www.woothemes.com/products/mystile/ ,这是Woo的免费主题乡亲们自己。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM