Required fields in GK Reservation

GK User
Wed Sep 17, 2014 3:40 pm
hi.
i need to turn "no-required" some fields in GK Reservation (phone, name...).
where is the file i must customize?
/plugins/system/plg_gkreservation ?

i have delete the texto " class=required" but doesn´t works.

???

thanks
User avatar
Senior Boarder

GK User
Sun Sep 21, 2014 10:17 am
Hello,

But the problem is with fact that these fields are still validated before sending or there is a problem after sending it? Because there is also a validation on the back-end in the following code fragment:

Code: Select all
if(
               ($this->params->get('name_field') == 0 || ($this->params->get('name_field') == 1 && $name != '')) &&
               ($this->params->get('email_field') == 0 || ($this->params->get('email_field') == 1 && $email != '')) &&
               ($this->params->get('phone_field') == 0 || ($this->params->get('phone_field') == 1 && $phone != '')) &&
               ($this->params->get('date_field') == 0 || ($this->params->get('date_field') == 1 && $date != '')) &&
               ($this->params->get('time_field') == 0 || ($this->params->get('time_field') == 1 && $time != '')) &&
               ($this->params->get('size_field') == 0 || ($this->params->get('size_field') == 1 && $size != ''))
            )
User avatar
Administrator


cron