Home Forums WoodMart support forum Funnelkit minicart – Header menu cart not updating

Funnelkit minicart – Header menu cart not updating

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #708457

    Little Panda
    Participant

    Hello,

    We use Funnelkit checkout and mini cart as we find the functionality better than native Woocommerce.

    We have an issue where when items are removed in the Funnelkit mini cart the cart in our header menu in woodmart theme is not updated unless the page is refreshed. (see video in the private area).

    Funnelkit tell us that this is because woodmart theme needs to listen to the AJAX remove-from-cart action so the menu cart can update dynamically without a page refresh.

    Can you help tell us how we can do this?

    Regards

    LP

    #708499

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand if it is our theme issue or not?

    Best Regards,

    #708604

    Little Panda
    Participant

    Hi,
    We inserted the native funnelkit cart next to the woodmart cart in the example in the private area video to show the issue.

    Does this help?

    #708671

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please deactivate all the 3rd party plugins and activate only theme-required plugins on the site and then check the issue. I am sure your issue will be solved. Then Activate the 3rd party plugins one by one and check which plugin is creating the issue for you.

    Otherwise, if the issue still exists, then keep the 3rd party plugins deactivated and share the WP admin login details of your site so I can check and give you a possible solution.

    Please also switch from the child theme to the parent theme (if you are currently using a child theme) and check whether the issue persists.

    Best Regards,

    #718750

    Little Panda
    Participant

    Hi,

    Circling back on this topic.

    You suggested for us to deactivate all 3rd party plugins to see if the issue will be fixed.
    The Funnelkit cart is of course a 3rd party plugin so deactivating that would solve the problem but we are looking to see if Funnelkit cart can work correctly with Woodmart.

    We have included admin login credentials for our staging site for you to check the issue.

    Please advise

    LP*

    #718802

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please, check how it works with the default WooCommerce Storefront theme. Send us a short video so we can see that there is no problem there.

    Best Regards

    #718818

    Little Panda
    Participant

    Hi.

    Okay. We switched to storefront theme with all plugins turned off.

    See the video in the private area.

    #718852

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Sorry to say, the login details you provided are not working anymore. Please share the correct login details so I can check the issue and give you a possible solution.

    Best Regards

    #718907

    Little Panda
    Participant

    Okay. I see. We only granted access for 3 days. Please try the private area for updated login information.
    Thank you

    LP*

    #718926

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Now I have checked your site, and the cart is updated fine.

    See video for clarification: https://streamable.com/fo8dvs

    Best Regards

    #718939

    Little Panda
    Participant

    Hello,

    Thank you but it the cart does not update correctly when using Woodmart cart. What you showed in your video was Funnelkit cart (which works correctly).

    In the previous video we provided we showed both funnelkit cart and woodmart cart side by side in the header menu.

    Woodmart cart did not update correctly.
    Funnelkit cart updated correctly.

    You can check them side by side in the link provided in the private area to see the behaviour.

    Let us know if you need anything further.

    Regards

    LP*

    #718969

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Navigate to Theme Settings > Shop > Action after add to cart > set the “No action” – https://postimg.cc/w1hHgd0D: then the plugin mini cart will work fine.

    Best Regards

    #718987

    Little Panda
    Participant

    Hello,

    This setting is already set to ‘no action’ but this issue still happens.

    Please advise?

    #719012

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please give me site access as an administrative role so I can check and give you a possible solution.

    Best Regards

    #719027

    Little Panda
    Participant

    Hello,

    We already provided admin access in the private area in an earlier post (May 20, 2026 at 12:55 pm)?

    Are those credentials not working?

    #719102

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    If you want to use the FunnelKit mini cart functionality completely, then it is recommended to remove/disable the WoodMart header cart to avoid conflicts and duplicate cart systems from WoodMart > Header Builder.

    Currently, both carts are running together, and FunnelKit updates only its own cart via AJAX, which is why our theme cart is not updated.

    Best Regards

    #719115

    Little Panda
    Participant

    Hi,

    Thank you for your reply. Whilst the Funnelkit cart works well, it does not work when using the navbar footer mobile menu (which uses the woodmart cart). Which is why we are keen to get the woodmart to work with the funnelkit cart.]\

    This is why funnelkit suggested that woodmart theme needs to listen to the AJAX remove-from-cart action so the menu cart can update dynamically without a page refresh.

    Is this possible or not?

    Regards
    LP*

    #719218

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please try to add the following code to the child theme >> functions.php and check if it works.

    add_filter( 'fkcart_fragments', function( $fragments ) {
    		ob_start();
    		woodmart_cart_count();
    
    		$fragments['span.wd-cart-number'] = ob_get_clean();
    
    		return $fragments;
    	} );

    Best Regards.

    #719237

    Little Panda
    Participant

    Hello,

    Thank you and we added the code to our UK subsite in the staging site.

    Whilst the cart count is now correct, the price is not cleared after the cart item is removed.

    Please see the video to see the issue (cart on the left is Funnelkit and cart on the right is Woodmart).

    https://www.loom.com/share/ab98d46be0dc4424a4b1e1d1d3144398

    Please advise
    LP*

    #719287

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please replace the previous code with this one.

    add_filter( 'fkcart_fragments', function( $fragments ) {
    	ob_start();
    	woodmart_cart_count();
    	$count = ob_get_clean();
    
    	ob_start();
    	woodmart_cart_subtotal();
    	$subtotal = ob_get_clean();
    
    	$fragments['span.wd-cart-number']   = $count;
    	$fragments['span.wd-cart-subtotal'] = $subtotal;
    
    	return $fragments;
    } );

    Best Regards.

    #719306

    Little Panda
    Participant

    Thank you. That fixed the issue. We got there in the end.

    Are you able to incorporate this snippet into your future Woodmart updates for compatability with funnelkit cart so we don’t have to run ithe code outside of woodmart?

    #719407

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Yes, we will add this fix to the theme in the next update.

    Best Regards.

Viewing 22 posts - 1 through 22 (of 22 total)