diff --git a/experimental/gpfup-count-files.js b/experimental/gpfup-count-files.js index df7455edf..682bd74d8 100644 --- a/experimental/gpfup-count-files.js +++ b/experimental/gpfup-count-files.js @@ -1,17 +1,5 @@ -jQuery(function() { - // Update "123" to your form ID and "4" to your File Upload field ID. - if (typeof window['GPFUP_123_4'] === 'undefined') { - return; - } - - // Update "123" to your form ID and "4" to your File Upload field ID. - var store = window.GPFUP_123_4.$store; - - store.subscribe(function(mutation, state) { - if (mutation.type !== 'SET_FILES') { - return; - } - // Update "5" to your Single Product field ID - or - update `#input_123_5_1` to your desired input's HTML ID. - jQuery( '#input_123_5_1' ).val( state.files.length ).change(); - }); -}); +/** + * We're no longer using the experimental folder for experimental snippets. 🚧 + * You can now find the snippet here: + * https://github.com/gravitywiz/snippet-library/blob/master/gp-file-upload-pro/gpfup-count-files.js + */