[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

Save Woo Shipping Zone ID as Meta Data

if ( ! defined( ‘ABSPATH’ ) ) { return; } if ( ! class_exists( ‘WooCommerce’ ) || ! class_exists( ‘WC_Shipping_Zones’ ) ) { return; } if ( ! function_exists( ‘rd_get_order_shipping_zone_id’ ) ) { function rd_get_order_shipping_zone_id( $order ) { if (…Continue reading

Replace BigPost Checkout Postcode Field Description

(function () { var rdBigPostHelpText = ‘Enter your postcode in the field above to load available suburbs. Once loaded,’ + ‘ select the suburb-postcode combination from the list below.’; // Customise Postcode field description text here. var rdObserverStarted = false;…Continue reading

Enqueue Scrips !important

add_action( ‘wp_enqueue_scripts’, function() { // 1) Make sure WooCommerce’s checkout.js is loaded (so it will set up wc_checkout_params) if ( ! wp_script_is( ‘wc-checkout’, ‘enqueued’ ) ) { wp_enqueue_script( ‘wc-checkout’ ); } // 2) Then load *your* script *after* it, so…Continue reading

Coupon AJAX.php

/** * Snippet Name: AJAX Coupon Handlers * Description: Handles apply/remove coupon via WC AJAX endpoints. * Execution: Run Everywhere (Front & Admin) * Priority: 10 */ // 1) APPLY COUPON via AJAX add_action( ‘wc_ajax_apply_coupon’, ‘wc_custom_apply_coupon_ajax’, 5 ); add_action( ‘wc_ajax_nopriv_apply_coupon’,…Continue reading

Custom Checkout.css

.readonly-field { background:#f2f2f2 !important; color:#666 !important; } /* ======================================== CHECKOUT BREADCRUMBS — Exact Styling Fix ======================================== */ .checkout-header h1 { font-size: 24px !important; } .checkout-header { font-size: 14px !important; } body.woocommerce-checkout .checkout-breadcrumb { display: flex; align-items: center; margin-bottom: 2rem; font-size:…Continue reading

Custom Checkout.js

/** * custom-checkout.js (canonical fields + live address refresh) * — Two-step navigation * — Ship-to-different handling via hidden input * — Address book modal (add/edit/delete) with instant UI refresh * — Address book integration on checkout * — Coupon…Continue reading

Custom Checkout.php

// ====================================================== // Custom 2-Step Checkout (guest gating + autofill guards) // + Step 1 Review Items (AJAX remove) — FULL FILE // // Includes: // – Guest: billing_email shown in Delivery > New Address only // – Guest: can…Continue reading