Support » Alpha/Beta/RC » Woocommerce add to cart ajax not working

  • Resolved Nabanita

    (@nabanita)


    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.

    http://wordpress.org/plugins/woocommerce

Viewing 1 replies (of 1 total)
  • In functions.php, the woocommerce scripts were dequeued.

    After removing

    wp_dequeue_script( 'wc-add-to-cart-variation' );
    wp_dequeue_script( 'wc-cart' );

    it’s working fine.

Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce add to cart ajax not working’ is closed to new replies.