• Resolved 01ericgruby

    (@01ericgruby)


    Hi!

    I’m stuck at the following situation:
    A custom loop, with custom ajax-add-to-cart buttons.
    The buttons are working fine.
    The floating cart only updates when I reload the page.

    Is there a way to update the floating cart calling a function via JS or something? Maybe a hook?

    Thanks ??

    • This topic was modified 7 years, 7 months ago by 01ericgruby.
    • This topic was modified 7 years, 7 months ago by 01ericgruby.
Viewing 1 replies (of 1 total)
  • Thread Starter 01ericgruby

    (@01ericgruby)

    Ha! Found it!

    I just refreshed the WC fragments with this:

    $( document.body ).trigger( 'wc_fragment_refresh' );

Viewing 1 replies (of 1 total)
  • The topic ‘Function to update cart using ajax’ is closed to new replies.