Created
December 2, 2022 11:31
-
-
Save xlplugins/18872280f8c95e7f904ad202963b973d to your computer and use it in GitHub Desktop.
untitled
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
<script> | |
(function () { | |
window.addEventListener('bwf_checkout_js_load', function () { | |
jQuery(document).ajaxComplete(function (event, jqxhr, settings) { | |
if (settings.url.indexOf("admin-ajax") > -1 && settings.hasOwnProperty('data') && settings.data.indexOf('wcpt_add_to_cart_multi')) { | |
jQuery.scroll_to_notices(jQuery('#wfacp_checkout_form')) | |
} | |
}); | |
}); | |
})(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment