Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter testfab

    (@testfab)

    Thanks so much, Frank! Happy New Year to you!

    Could you please tell me if this is correct (where I placed the code), and that is my final request! 🙂

    <div class=”apcal_modal-body”>
    <div id=”timesloatbox” class=”apcal_alert apcal_alert-block” style=”float:left; height:auto; width:90%;”>
    <!—slots time calulation—>
    <?php
    # time-slots calculation
    global $wpdb;
    $ServiceId = $_GET[“ServiceId”];
    $ServiceTableName = $wpdb->prefix.”ap_services”;
    $FindService_sql = “SELECT name, duration FROM $ServiceTableName WHERE id = ‘$ServiceId'”;
    $ServiceData = $wpdb->get_row($FindService_sql, OBJECT);
    $ServiceDuration = $ServiceData->duration;
    End Time: <input type=”text” name=”end_time” id=”end_time”>
    $AppointmentDate = date(“Y-m-d”, strtotime($_GET[‘AppDate’])); //assign selected date by user

    Thread Starter testfab

    (@testfab)

    Hi Frank

    Sorry again, for being annoying and asking the same question.

    Finding where to assign the end time variable was not hard, but I have no idea where to add this: End Time: <input type=”text” name=”start_time” id=”start_time”>

    Cannot find where the field values for the modal are.

    Krish

    Thread Starter testfab

    (@testfab)

    Thanks for the very quick reply, Frank! Greatly appreciated.

    I have a problem though, in that I am not sure where I should make these changes? Which .php file(s) should I edit for the Second Modal Window? Or for the appointment saving code? (data_save?).

    There are a lot of different .php files and I can not easily tell what they are all for. Please provide the specifics for where exactly to change these values.

    Thanks in advance
    Kris

Viewing 3 replies - 1 through 3 (of 3 total)