Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created April 24, 2024 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xlplugins/daf917b8b260eedc6b64661f7faf78bb to your computer and use it in GitHub Desktop.
Save xlplugins/daf917b8b260eedc6b64661f7faf78bb to your computer and use it in GitHub Desktop.
open cart forcefully after booking
add_action( 'wp_footer', function () {
?>
<script>
window.addEventListener('load', function () {
(function ($) {
try {
$(document).on('em_booking_success', function () {
console.log('fffff');
$('body').trigger('fkcart_update_side_cart', [true]);
});
} catch (e) {
}
})(jQuery)
})
</script>
<?php
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment