class Booked_WC_Cart_Hooks {
public static function woocommerce_checkout_fields( $fields ) {
151 >>>? ?global $woocommerce;
? ?$booked_first_name = $woocommerce->session->get( ‘booked_first_name’ );
? ?$booked_last_name = $woocommerce->session->get( ‘booked_last_name’ );
? ?$booked_email = $woocommerce->session->get( ‘booked_email’ );
? ?if(!is_null($booked_first_name)):
? ? $fields[‘billing’][‘billing_first_name’][‘default’] = $booked_first_name;
? ?endif;
? ?if(!is_null($booked_last_name)):
? ? $fields[‘billing’][‘billing_last_name’][‘default’] = $booked_last_name;
? ?endif;
? ?if(!is_null($booked_email)):
? ? $fields[‘billing’][‘billing_email’][‘default’] = $booked_email;
? ?endif;
? ?return $fields;
}