0
good night! I’m developing a website for a restaurant and in it I installed a desktop reservation systems plugin, called (https://br.wordpress.org/plugins/restaurant-reservations/)
The following happens, when I raise the site by hosting the time field, does not work, it goes blank; even reinstalling the plugin it goes blank, I read in the developer’s github that other plugins can affect the time and I would like to remove the time
The problem of removing is that I have touched the part of the array
* See /includes/template-functions.php
*/
$fields = array(
// Reservation details fieldset
'reservation' => array(
'legend' => __( 'Preencha todos os campos', 'restaurant-reservations' ),
'fields' => array(
'date' => array(
'title' => __( 'Data da reserva', 'restaurant-reservations' ),
'request_input' => empty( $request->request_date ) ? '' : $request->request_date,
'callback' => 'rtb_print_form_text_field',
'required' => true,
),
'time' => array(
'title' => __( 'Horário da reserva', 'restaurant-reservations' ),
'request_input' => empty( $request->request_time ) ? '' : $request->request_time,
'callback' => 'rtb_print_form_text_field',
'required' => true,
),
'party' => array(
'title' => __( 'Pessoas', 'restaurant-reservations' ),
'request_input' => empty( $request->party ) ? '' : $request->party,
'callback' => 'rtb_print_form_select_field',
'callback_args' => array(
'options' => $this->get_form_party_options(),
),
'required' => true,
),
),
),
// Contact details fieldset
'contact' => array(
'legend' => __( 'Detalhes de Contato', 'restaurant-reservations' ),
'fields' => array(
'name' => array(
'title' => __( 'Nome Completo', 'restaurant-reservations' ),
'request_input' => empty( $request->name ) ? '' : $request->name,
'callback' => 'rtb_print_form_text_field',
'required' => true,
),
'email' => array(
'title' => __( 'Email Válido', 'restaurant-reservations' ),
'request_input' => empty( $request->email ) ? '' : $request->email,
'callback' => 'rtb_print_form_text_field',
'callback_args' => array(
'input_type' => 'email',
),
'required' => true,
),
'phone' => array(
'title' => __( 'Telefone', 'restaurant-reservations' ),
'request_input' => empty( $request->phone ) ? '' : $request->phone,
'callback' => 'rtb_print_form_text_field',
'callback_args' => array(
'input_type' => 'tel',
),
),
'add-message' => array(
'title' => __( 'Adicionar Mensagem', 'restaurant-reservations' ),
'request_input' => '',
'callback' => 'rtb_print_form_message_link',
),
'message' => array(
'title' => __( 'Mensagem', 'restaurant-reservations' ),
'request_input' => empty( $request->message ) ? '' : $request->message,
'callback' => 'rtb_print_form_textarea_field',
),
),
),
);
removed, but when I try to make the request the system asked to add the time, how do I fix this ? Image with error: http://prntscr.com/jtgc83
This link, it informs exactly my problem, but I can’t do it, see
Success! was this same link I had seen hahaha
– Felipe de Farias