jQuery Woocommerce 添加到购物车按钮丢失
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12288903/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Woocommerce add to cart button missing
提问by Kade Hafen
if you go to this page and try to make a selection, you can see that the add to cart button isn't showing up. http://www.wearigive.com/product/camo-bracelet/
如果您转到此页面并尝试进行选择,您会看到添加到购物车按钮未显示。http://www.wearigive.com/product/camo-bracelet/
you can see all of the comments on this page: http://www.woothemes.com/2012/08/in-this-weeks-episode-of-woocommerce/about the add to cart button not showing
您可以在此页面上看到所有评论:http: //www.woothemes.com/2012/08/in-this-weeks-episode-of-woocommerce/关于添加到购物车按钮未显示的评论
I can't figure out why the button won't show? I have verified jQuery 1.7 is running in the page, and it's not being overwritten by another jQuery version.
我不明白为什么按钮不会显示?我已经验证页面中正在运行 jQuery 1.7,并且它没有被另一个 jQuery 版本覆盖。
回答by iamwhitebox
I ran into this problem and solved it by simply filling out the needed information for the product (ID, SKU, Price, Weight, Dimensions)
我遇到了这个问题并通过简单地填写产品所需的信息(ID、SKU、价格、重量、尺寸)来解决它
回答by living being
And sometimes this will solve the problem:
Go to apperience > customization > woocommerce > catalog mode
and disable it. This only works for not showing the "add to cart" button.
That was my case
有时这会解决问题:转到apperience > customization > woocommerce > catalog mode
并禁用它。这仅适用于不显示“添加到购物车”按钮的情况。那是我的情况
回答by clairence
I had the same problem. My solution was simpler. Turned out I'd used a plugin that moves javascript to the bottom of the page to speed up the page loads. Apparently that caused a jquery issue. Disabling the plugin returned the button to visibility.
我有同样的问题。我的解决方案更简单。原来我使用了一个插件,将 javascript 移动到页面底部以加快页面加载速度。显然,这导致了 jquery 问题。禁用插件使按钮可见。
回答by swissmiss
It may not be broken. If the product has variables, and when the option to enable AJAX add to cart buttons on product archives
in the woocommerce
settings, the button div will be revealed to the user once all the selections are made. The reason, there may be options to choose which affect the price. In your testing, be sure to make all of the required selections on the user side.
它可能不会被打破。如果产品有变量,并在选项enable AJAX add to cart buttons on product archives
中的woocommerce
设置,该按钮的div将被暴露于用户一旦所有的做出选择。究其原因,可能存在影响价格的选项可供选择。在您的测试中,请确保在用户端进行所有必需的选择。