webmonk
Forum Replies Created
-
Forum: Plugins
In reply to: [CheckoutWC Lite] Type error: e is undefinedDo you have a github repository for this plugin? I can fix and submit a PR.
Forum: Plugins
In reply to: [CheckoutWC Lite] Type error: e is undefinedI found the fix for this.
In CompleteOrderAction.ts, you have triple “s” in resp.messagesAlertService.createAlertsFromMessages( resp.messsages );if ( typeof resp.messages === 'string' && resp.messages.length ) { AlertService.createAlertsFromMessages( resp.messsages ); } else { /** * If the payment gateway comes back with no message, show a generic error. */ const message = DataService.getCheckoutParam( 'i18n_checkout_error' ).toString(); const rawResponse = JSON.stringify( resp, null, 2 ); const alert: Alert = new Alert( 'error', message, 'cfw-alert-error', ); AlertService.queueAlert( alert ); // Console log the error + raw response LoggingService.logError(${message}\n\n${rawResponse}); } // Trigger update in case we need a fresh nonce if ( resp.refresh === true ) { jQuery( document.body ).trigger( 'update_checkout' ); }Forum: Plugins
In reply to: [CheckoutWC Lite] Type error: e is undefinedThe bug is in AlertService.ts file.
messages is undefined here:if ( messages.indexOf( '<script' ) !== -1 ) {
jQuery( document.body ).prepend(<div style="display:none">${messages}</div>);
}- This reply was modified 2 years, 4 months ago by webmonk.
Forum: Everything else WordPress
In reply to: No result for plugin search in WordPress RepositoryThanks, Steve. Didn’t notice that. Fixed the typo now. Appreciate it 🙂
Forum: Everything else WordPress
In reply to: No result for plugin search in WordPress RepositoryThank you James for taking the time to look at it. I’m going to implement the recommendations you have suggested.
Is it compatible with WC 5.4+ ?
Forum: Plugins
In reply to: [Filter Orders by Product for WooCommerce] Remove is_search() conditionRemove is_search() condition. That is why at times the results show all the products instead of the filtered product ID.