If you are thinking to use WooFood for in-table ordering here is a small code snippet that will get automatically get the table number .

The below code can be added on functions.php of your child theme.

With the below code you can set the parameter table to the table number like

https://www.yoursite.com/?table=45

add_action( 'wp_head', 'wpslash_custom_check_for_table_param' );

function wpslash_custom_check_for_table_param() {
	global $woocommerce;
     if( isset( $_GET['table'] ) ) {
		 WC()->customer->set_billing_first_name($_GET['table']);

     }
	if(empty(WC()->customer->get_billing_first_name()))
	{
wc_add_notice('Scan QR Code to continue ordering', 'error' );
wc_print_notices();
	
	}
}