Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor FARAZFRANK

    (@farazfrank)

    Hey Anand,

    Do you want to display available slots only at second modal window?

    ~Frank

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Thanks a lot Frank!!
    Yes . For eg if i have avalible slot 10-12, 12-13,13-14 and i booked 12-13 then need to show 10-12,13-14 in available slots.

    As i know before making few changes ,it was showing like above but not now.

    Thanks,

    Anand Kumar mishra

    Plugin Contributor FARAZFRANK

    (@farazfrank)

    Anand It’s quite easy.

    Follow These Instructions:

    File: appointment-calendar-shordcode.php

    Find Comment Code:

    // Show All Enable Time Slot

    Comment else part of inner code.

    /*else
    {	// enable slots		?>
    	<div style="width:90px; float:left; padding:1px; display:inline-block;">
    	<input name="start_time" id="start_time"  disabled="disabled" type="radio"  value="<?php echo $Single; ?>"/>?<del><?php echo $Single; ?></del>
    	</div>
    	<?php
    }*/

    Your done.

    Check snap here for better understanding.

    Kind Regards
    ~Frank

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Thanks for such a great reply..

    I would like to remove the booked slot from secondry window. In the following image you can see that i have booked slot 8:00-8:45 so 8:00 should be reomved from my popup window.

    https://inflectica.com/Screenshot-toRemoveBookedSlots.png

    Thanks you so much!!

    Plugin Contributor FARAZFRANK

    (@farazfrank)

    Hi Anand,

    I found you added one more filed on first modal window.
    Select Psykolog

    May be possible this breaks all over logic behind the booking process.

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Thanks Frank you are very helpful!!

    One more question plz : I would like to convert plugin into swedish using language translation. Can you please help me to do that?

    Also i need to covert bold text (Day and month into swedish).
    Available Time For ‘Anthony’ On ‘Tuesday, 8th October 2013’

    Thanks,

    Anand

    Plugin Contributor FARAZFRANK

    (@farazfrank)

    Hi Anand,

    Here the solution:

    Code Line(854), Split date("d-m-Y", strtotime($AppointmentDate)) text part and numeric part.

    echo "<div class='apcal_alert apcal_alert-info' align='center'>". __("Available Time For", "appointzilla") ." <strong>'$ServiceData->name'</strong> ". __("On", "appointzilla"). " <strong>'".date("d-m-Y", strtotime($AppointmentDate))."'</strong></div>";
    
    //Part of date
    date("d", strtotime($AppointmentDate));
    
    //Part of year
    date("Y", strtotime($AppointmentDate));

    Use following code to translate textual part(day n month name) in Swidish

    setlocale(LC_TIME, "swedish");
    echo strftime("In swedish:  %A, %B");

    And concatenate the all part.

    Refer following link to more format string for strftime() function

    May this help you.

    Thanks
    Frank

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Thanks Frank,

    Thanks a ton!!

    Regards,

    Anand

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Hi Frank,

    I did it like as follows:

    $datewidday =	date("l, jS F Y", strtotime($AppointmentDate));
    					$datewidday = str_replace("January", "januari", $datewidday);
    					$datewidday = str_replace("February", "februari", $datewidday);
    					$datewidday = str_replace("March", "mars", $datewidday);
    					$datewidday = str_replace("April", "April", $datewidday);
    					$datewidday = str_replace("May", "Maj", $datewidday);
    					$datewidday = str_replace("June", "juni", $datewidday);
    					$datewidday = str_replace("July", "juli", $datewidday);
    					$datewidday = str_replace("August", "augusti", $datewidday);
    					$datewidday = str_replace("October", "oktober", $datewidday);
    					$datewidday = str_replace("Monday", "m&aringndag", $datewidday);
    					$datewidday = str_replace("Tuesday", "tisdag", $datewidday);
    					$datewidday = str_replace("Wednesday", "onsdag", $datewidday);
    					$datewidday = str_replace("Thursday", "torsdag", $datewidday);
    					$datewidday = str_replace("Friday", "fredag", $datewidday);
    					$datewidday = str_replace("Saturday", "l&oumlrdag", $datewidday);
    					$datewidday = str_replace("Sunday", "s&oumlndag", $datewidday);

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Plugin Contributor FARAZFRANK

    (@farazfrank)

    But this isn’t a correct way.

    Format: ‘Tuesday, 8th October 2013’

    Day + Date(numeric part) + Month + Year

    Then Code will be as:

    setlocale(LC_TIME, "swedish");
    $TranslatedAppointmentDate = strftime("%B", strtotime($AppointmentDate)) . ", " . date("jS", strtotime($AppointmentDate)) . " " . strftime("%A", strtotime($AppointmentDate)) . " " . date("Y", strtotime($AppointmentDate));

    It could be more simplified.

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Yes agreed .. I am going to change it..

    Thank you so much…

    Regards,

    Anand

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Remove the slot those are booked’ is closed to new replies.