WordPress.org

Ready to get started?Download WordPress

Forums

WP Menu Cart
[resolved] Menu cart doesn't update in real time (EDD) (7 posts)

  1. thomasmpreston
    Member
    Posted 1 year ago #

    Hi,

    Great little plugin that I'm using with Easy Digital Downloads.

    However, when I click 'add to cart' on my items the menu cart doesn't update details until I refresh the page or click elsewhere. In contrast the widget with EDD updates in real time so it looks a bit odd.

    Just updated both to latest versions btw. And I'm using the free version.

    http://wordpress.org/extend/plugins/wp-menu-cart/

  2. Jeremiah
    Member
    Plugin Author

    Posted 1 year ago #

    Hello, thanks for your message!

    We're having an issue with EDD ajax. Sometimes it fires in the proper order (meaning our ajax function runs after EDD's function adds the item to the cart) and sometimes it doesn't. It seems to depend on how long it takes to load certain pieces of javascript. We're working on getting this resolved, but unfortunately it's much more difficult than it sounds. ;) Anyway, I'm hoping to have this fixed within a week or so. The next update should have the fix in place.

  3. thomasmpreston
    Member
    Posted 1 year ago #

    Hi, thanks for the reply!

    Good to know it's in hand, I'll look forward to the update :)

    Cheers,

    Tom

  4. Jeremiah, if you need any assistance working this out, let me know!

  5. Jeremiah
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Pippin!

    So I just found a way that works, but would you mind confirming that this is a reasonable way to do this? If I add a slight delay to our ajax call (1 second) it seems to delay the script enough to insure that your add to cart ajax has had time to run. As well, the delay is short enough that it looks pretty good. Is there a better method that I should be using, or is this a good way to do it?

  6. That should work just fine!

  7. Jeremiah
    Member
    Plugin Author

    Posted 1 year ago #

    Awesome, we'll push it then. I can't believe I didn't think of this earlier. Thanks for always being so quick to help. Also, that could be a great spot for a hook in the future, like WooCommerce's add_to_cart_fragments filter. ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic