WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Woocommerce add to cart ajax not working (2 posts)

  1. Nabanita
    Member
    Posted 12 months ago #

    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

  2. Nabanita
    Member
    Posted 12 months ago #

    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.

Reply

You must log in to post.

About this Topic