Last active
July 2, 2021 16:50
-
-
Save fleimisch/3a84d45702e91a20d0d6 to your computer and use it in GitHub Desktop.
SCE Available JS Events
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
| // PURE JS VERSION NEW: | |
| var event = new CustomEvent("TEALoaded"); | |
| document.dispatchEvent(event); | |
| document.addEventListener('TEALoaded', function(e) {alert("tealoaded")}); | |
| // example event creation | |
| jQuery.event.trigger('onMegaMenuOpen'); | |
| // on Mega Menu Open: | |
| $(document).bind('onMegaMenuOpen', function () { alert('test') }); | |
| // on Mega Menu Close: | |
| $(document).bind('onMegaMenuClose', function () { alert('test') }); | |
| // on Submit to the Support Desk: | |
| $(document).bind('SupportDeskSubmitted', function () { alert('test') }); | |
| // on Modal Box open: | |
| $(document).bind('OverlayBoxonOpen', function () { alert('test') }); | |
| // on Wish List Pop up OPEN on Grid View Search | |
| $(document).bind('gridWishListPopOpen', function () { alert('test') }); | |
| // on Head Cart Loaded | |
| $(document).bind('HeadCartLoaded', function () { alert('test') }); | |
| // head cart count refresh | |
| cartCountRefresh | |
| // on Product Page Refresh - options load | |
| $(document).bind('ProductPageRefresh', function () { alert('test') }); | |
| // on Search Results NO PRODUCTS FOUND | |
| $(document).bind('SearchNoProductsFound', function () { alert('test') }); | |
| // on Search Results Update | |
| $(document).bind('searchResultsUpdated', function () { alert('test') }); | |
| // on MOBILE search filters popup open: | |
| $(document).bind('mobileFiltersOpen', function () { alert('test') }); | |
| // on MOBILE search filters popup close: | |
| $(document).bind('mobileFiltersClose', function () { alert('test') }); | |
| // on search filters change: | |
| $(document).bind('filtersChange', function () { alert('test') }); | |
| // on mobile scripts loaded | |
| $(document).bind('mobileScriptsLoaded', function () { alert('test') }); | |
| // on contact us sent | |
| $(document).bind('ContactUs', function () { alert('test') }); | |
| // on Cart page Coupon Apply: | |
| $(document).bind('couponApplied', function () { alert('test') }); | |
| // on Checkout page refresh / reload: | |
| $(document).bind('checkoutScreenRefresh', function () { alert('test') }); | |
| // on Related Products Load: | |
| $(document).bind('relatedProductsLoaded', function () { alert('test') }); | |
| // on Recently Viewed Products Load: | |
| $(document).bind('recentProductsLoaded', function () { alert('test') }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment