WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Add to Cart variation via ajax (7 posts)

  1. achsanos
    Member
    Posted 1 year ago #

    Is there any way to make the variable add-to-cart button (inside product page) do it via ajax, such as the simple product button can do, without reloading page?

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    Not sure if you're asking for someone to code this for you or are you just asking in general if that could work? But yes it is possible.

  3. achsanos
    Member
    Posted 1 year ago #

    Yes, I need some code or at least some direction to follow. I tried several ways (js assets, templates php), but did not get very far. Is there any ideas you can share?

  4. Roy Ho
    Member
    Posted 1 year ago #

    This is quite complicated so I think it is best you hire someone to do for you. You can post a offer on wordpress.org jobs section.

  5. thesl1nk
    Member
    Posted 1 year ago #

    Hi was this ever resolved? This is something I'm trying to do.

    I have successfully got the product adding with Ajax but the cart doesn't display the variation just the main product. I'm passing the variation_id to the cart and its triggering the correct part of the woocommerce_add_to_cart_action action in woocommerce-functions.php but something must be missing. Can't figure out what because the ajax request is virtually identical.

  6. bhavin hirpara
    Member
    Posted 7 months ago #

    hi
    solve add-to cart via ajax in variation product.plz send code.many days i tried to resolve this problem but don't solve it.so plz send code...

  7. bhavin hirpara
    Member
    Posted 7 months ago #

    hi,
    I solved addtocart via ajax in variable product.i add code in my blog.
    hirparabhavin.wordpress.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic