Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter itumobility

    (@itumobility)

    For those who are renting to a community of members and so, wish to be able to pick-up email automatically, here is my contribution:

    /wp-content/plugins/booking-system/includes/forms/class-frontend-forms.php

    add:

    if ($field->translation =='Email'){
        global $current_user;
        get_currentuserinfo();
        $field->value=$current_user->user_email;
        }

    /wp-content/plugins/booking-system/assets/js/jquery.dop.frontend.BSPCalendar.js around line 5237
    For text fields, modify as below:
    HTML.push(' <input type="text" name="DOPBSPCalendar-form-field'+ID+'_'+formField['id']+'" id="DOPBSPCalendar-form-field'+ID+'_'+formField['id']+'" value="' + formField['value'] +'" />');

Viewing 1 replies (of 1 total)