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

Checkout – Spaarbedrag shortcode + afhaalpunt fix

// Toon totaal spaarbedrag op basis van winkelmand in (FunnelKit) checkout function shortcode_spaar_bedrag_checkout() { // Controleer of WooCommerce actief is if ( ! function_exists( ‘WC’ ) || ! WC()->cart ) { return ”; } // FunnelKit laadt niet altijd als…Continue reading

Disable the “grab image” setting for Divi on checkout

add_filter( ‘et_grab_image_setting’, ‘prefix_disable_image_setting_on_checkout’, 100 ); /** * Disable the Divi image setting on checkout. * * @param bool $setting * @return bool */ function prefix_disable_image_setting_on_checkout( $setting ) { return edd_is_checkout() ? false : $setting; }Continue reading

Show Terms By Default (copy)

function sumobi_edd_show_terms_agreement() { global $edd_options; /*print_r($edd_options);*/ if ( isset( $edd_options[‘show_agree_to_terms’] ) ) { ?> <?php } } remove_action( 'edd_purchase_form_before_submit', 'edd_terms_agreement' ); add_action( 'edd_purchase_form_before_submit', 'sumobi_edd_show_terms_agreement' );Continue reading