Exclude Common Scripts from SiteGround Speed Optimizer JS Minification

add_filter( ‘sgo_js_minify_exclude’, ‘js_minify_exclude’ ); function js_minify_exclude( $exclude_list ) { // Required as of WC Stripe Gateway v10.8.4 due to JS conflict on certain machines (Windows 11 conflict confirmed) $exclude_list[] = ‘wc-stripe-upe-classic’; // For classic/shortcode checkout $exclude_list[] = ‘wc-stripe-blocks-integration’; // For…Continue reading

[NOT IN USE – Zorem Customer Email Verification] Hide Billing Fields After Email Until Verified

(function () { const fieldSelectors = [ ‘#billing_phone_field’, ‘#billing_company_field’, ‘#billing_address_1_field’, ‘#billing_address_2_field’, ‘#billing_city_field’, ‘#billing_postcode_field’, ‘#billing_state_field’, ‘#billing_country_field’ ]; const klaviyoSelectors = [ ‘#kl_newsletter_checkbox_field’, ‘#kl_sms_consent_checkbox_field’ ]; function setVisibility(selectors, show) { selectors.forEach(selector => { const el = document.querySelector(selector); if (el) { el.style.display = show…Continue reading

[NOT IN USE – Zorem Customer Email Verification] Change Verification Code Input to Number Format

document.addEventListener(‘DOMContentLoaded’, function () { const observer = new MutationObserver(function () { const codeInput = document.querySelector(‘input[name=”cev_billing_email”]’); if (codeInput && !codeInput.hasAttribute(‘inputmode’)) { codeInput.setAttribute(‘inputmode’, ‘numeric’); } }); observer.observe(document.body, { childList: true, subtree: true }); });Continue reading