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

Hide RD Theme Woo Additional Order Info Wrapping Column when No Additional Order Info Present

(function () { function rdToggleAdditionalOrderInfoColumn() { var container = document.getElementById(‘rd-additional-order-info’); if (!container) { return; } if (!container.querySelector(‘.awb-woo-order-additional-info’)) { container.style.display = ‘none’; } } if (document.readyState === ‘loading’) { document.addEventListener(‘DOMContentLoaded’, rdToggleAdditionalOrderInfoColumn); } else { rdToggleAdditionalOrderInfoColumn(); } })();Continue reading

Replace APFWS Matching Product Notice

(function () { if (typeof window === ‘undefined’ || !document) return; // Exit if WooCommerce frontend scripts are not present. if (typeof window.wc_add_to_cart_params === ‘undefined’) return; // Exit if WooCommerce APFS is not present (guards by checking for its AJAX…Continue reading