WooCommerce AJAX Fix for RD Theme Live Cart Update

const DEBUG = false; // Set to true to enable console logs for debugging (function checkJQueryThenRun(retries = 10) { if (typeof jQuery === ‘undefined’) { if (DEBUG) console.warn(‘⏳ Waiting for jQuery…’); if (retries > 0) { setTimeout(() => checkJQueryThenRun(retries –…Continue reading

Display Only Selected Countries on the Vendor Registration Form

add_action( ‘wp_enqueue_scripts’, static function () { $registration_page_id = (int) get_option( ‘wcv_signup_registration_page_id’, 0 ); if ( 0 === $registration_page_id || ! is_page( $registration_page_id ) ) { return; } $allowed_countries = array( ‘AU’, ‘GB’, ‘US’, ‘CA’ ); // ISO 3166-1 alpha-2 codes…Continue reading

Custom Vendor Product Fields for HTS and Export Classification Number

// Output the custom HTS Classification at the bottom of the General tab of Product Edit Page. add_action( ‘wcv_product_options_general_product_data’, ‘wcv_product_hts_classification’ ); function wcv_product_hts_classification( $object_id ){ WCVendors_Pro_Form_Helper::textarea( array( ‘post_id’ => $object_id, ‘id’ => ‘wcv_custom_product_hts_classification’, ‘label’ => __( ‘HTS Classification’, ‘wcvendors-pro’ ),…Continue reading