dousi2553 2013-07-17 07:22 采纳率: 0%
浏览 231

Woocommerce添加到购物车ajax无法正常工作

I'm developing a theme for woocommerce plugin (2.0.12) in wordpress (3.5.1).

In my home page I've added featured products, recent products & top rated products through shortcode which are appearing fine.

Problem: The 'Add to Cart' buttons AJAX is not working. Instead of the AJAX call, the page reloads on clicking the 'Add to Cart' button of an individual product. I've added the cart.min.js in the page, but still the problem persists. It seems that the js variable woocommerce_meta is not getting loaded.

The url is:http://demo.pixelpoetics.net/ecommerce

Thank you in advance.

  • 写回答

4条回答 默认 最新

  • dongsicheng5262 2013-07-17 09:05
    关注

    Your cart is updating, but the number of products showed next to "Cart" in the cart button is not updating. I recommend you to use a plugin like "woocommerce dropdown cart widget" to integrate and show your cart easily.

    评论

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改