Created
November 11, 2025 11:15
-
-
Save xlplugins/bcb25190f24ee5de6c3a6a439d131a54 to your computer and use it in GitHub Desktop.
Funnelkit Cart: Slide Cart Trigger when bundle product added by Version 2.0.2 | By WowRevenue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action( 'wp_footer', function () { | |
| ?> | |
| <script> | |
| (function () { | |
| window.addEventListener('load', function () { | |
| (function ($) { | |
| $(document).on('revenue:add_bundle_to_cart', function(event, data) { | |
| // When it fires, trigger the fkcart_update_side_cart event | |
| $(document.body).trigger('fkcart_update_side_cart', [false]); | |
| }); | |
| })(jQuery) | |
| }) | |
| })(); | |
| </script> | |
| <?php | |
| }, 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment