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.

    评论

报告相同问题?