Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    It’s really frustating…….

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Hi Frank,
    Whatever i am printing into the following php code under event it is giving error:

    events: [

    [ Moderator note: please wrap code in backticks or use the code button. ]

    <?php		//Loading Appointments On Calendar Start
    		global $wpdb;
    		$AppointmentTableName = $wpdb->prefix."ap_appointments";
    		print_r($_POST);
    
    error(JS error console) is as follows:
    
    SyntaxError: missing ] after element list
    Source File: https://localhost/wordpress/?p=41
    Line: 188, Column: 4
    Source Code:
        {

    After clicking into it , it is shown as follows:

    editable: true,
    		events: [
    Array
    (
    )
    				{
    					title: "(08:00 - 10:00) Bokningsbara tider ",
    					start: new Date(2013, 9, 24, 08, 00),
    					end: new Date(2013, 9, 24, 10, 00),
    					allDay: false,
    					backgroundColor : "#1FCB4A",
    					//backgroundColor : "blue",
    					textColor: "black",
    				},

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Thanks for your help ,but i get blank $ServiceId in this code

    [ Moderator note: please wrap code in backticks or use the code button. ]

    if(isset($_POST['action']) == "sendserviceid") {
         $ServiceId = $_POST['ServiceId'];
         // now here use $ServiceId in query
    }

    whereas i send 18 in ajax.

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Hi Frank,
    I just wanted to use serviceId into query

    $FetchAllApps_sql = “select name, start_time, end_time, date FROM $AppointmentTableName WHERE service_id=$serviceId”;

    I am waiting for your response.

    Thanks,

    Anand

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Hi Frank, Thanks you so much for quick reply…

    I am using the given solution in my code but it is not working

    [ Moderator note: please wrap code in backticks or use the code button. ]

    jQuery('#next1').click(function(){
    		//Hiding the selection of specility and doctors//
    			jQuery('.apcal_modal-info').hide();
    			jQuery('.apcal_modal-body').hide();
    			jQuery('#next11').show();
    			var serviceId= jQuery('#service').val();
    			var doctorName= jQuery('#doctorName').val();
    			var appdate= jQuery('#appdate').val();
    			var currenturl = jQuery(location).attr('href');
    			var url = currenturl;
    			var Datastring = "action=getServiceid&serviceId=" + serviceId;
    			<strong>jQuery.ajax({
    			      dataType : 'html',
    			      type: 'POST',
    			      url : url,
    			      cache: false,
    			      data : Datastring,
    			      complete : function() {  },
    			      success: function(data) {
    				  //alert(data);
    			      }
    			  });</strong>
    			//alert("id="+serviceId+" name="+doctorName+" appdate="+appdate);
    		//Hiding the selection of specility and doctors//
    	jQuery('#calendar').fullCalendar({
    		header: {
    			left: 'prev,next today',
    			center: 'title',
    			right: 'agendaWeek'
    		},
    		editable: false,
    		weekends: true,
    		timeFormat: 'H:mm',
    		axisFormat: 'H:mm',
    		<?php $AllCalendarSettings = unserialize(get_option('apcal_calendar_settings')); ?>
    		firstDay: <?php if($AllCalendarSettings['calendar_start_day'] != '') echo $AllCalendarSettings['calendar_start_day']; else echo "1"; ?>,
    		slotMinutes: <?php if($AllCalendarSettings['calendar_slot_time'] != '') echo $AllCalendarSettings['calendar_slot_time']; else echo "15"; ?>,
    		defaultView: '<?php if($AllCalendarSettings['calendar_view'] != '') echo $AllCalendarSettings['calendar_view']; else echo "month"; ?>',
    		minTime: <?php if($AllCalendarSettings['day_start_time'] != '') echo date("G", strtotime($AllCalendarSettings['day_start_time'])); else echo "8"; ?>,
    
    		maxTime: <?php  if($AllCalendarSettings['day_end_time'] != '') echo date("G", strtotime($AllCalendarSettings['day_end_time'])); else echo "20"; ?>,
    		monthNames: ["<?php _e("januari", "appointzilla"); ?>","<?php _e("februari", "appointzilla"); ?>","<?php _e("mars", "appointzilla"); ?>","<?php _e("April", "appointzilla"); ?>","<?php _e("Maj", "appointzilla"); ?>","<?php _e("juni", "appointzilla"); ?>","<?php _e("juli", "appointzilla"); ?>", "<?php _e("augusti", "appointzilla"); ?>", "<?php _e("September", "appointzilla"); ?>", "<?php _e("oktober", "appointzilla"); ?>", "<?php _e("November", "appointzilla"); ?>", "<?php _e("December", "appointzilla"); ?>" ],
    		monthNamesShort: ["<?php _e("Jan", "appointzilla"); ?>","<?php _e("Feb", "appointzilla"); ?>","<?php _e("Mar", "appointzilla"); ?>","<?php _e("Apr", "appointzilla"); ?>","<?php _e("May", "appointzilla"); ?>","<?php _e("Jun", "appointzilla"); ?>","<?php _e("Jul", "appointzilla"); ?>","<?php _e("Aug", "appointzilla"); ?>","<?php _e("Sept", "appointzilla"); ?>","<?php _e("Oct", "appointzilla"); ?>","<?php _e("nov", "appointzilla"); ?>","<?php _e("Dec", "appointzilla"); ?>"],
    		dayNames: ["<?php _e("s?ndag", "appointzilla"); ?>","<?php _e("m?ndag", "appointzilla"); ?>","<?php _e("tisdag", "appointzilla"); ?>","<?php _e("onsdag", "appointzilla"); ?>","<?php _e("torsdag", "appointzilla"); ?>","<?php _e("fredag", "appointzilla"); ?>","<?php _e("l?rdag", "appointzilla"); ?>"],
    		dayNamesShort: ["<?php _e("s?ndag", "appointzilla"); ?>","<?php _e("m?ndag", "appointzilla"); ?>", "<?php _e("tisdag", "appointzilla"); ?>", "<?php _e("onsdag", "appointzilla"); ?>", "<?php _e("torsdag", "appointzilla"); ?>", "<?php _e("fredag", "appointzilla"); ?>", "<?php _e("l?rdag", "appointzilla"); ?>"],
    		buttonText: {
    				today: "<?php _e("Idag", "appointzilla"); ?>",
    				day: "<?php _e("Dag", "appointzilla"); ?>",
    				week:"<?php _e("Vecka", "appointzilla"); ?>",
    				month:"<?php _e("M?nad", "appointzilla"); ?>"
    		},
    		selectable: true,
        		selectHelper: true,
    			select: function(start, end, allDay){ //alert("id="+serviceId);
    				/*jQuery('#bkbtndiv').show();
    				jQuery('#AppSecondModalDiv').show();
    				jQuery('#AppFirstModal').show();
    				jQuery('#AppFirstModalDiv').show();*/
    				//alert(end);
    
    		},
    			editable: true,
    		events: [
    <?php		//Loading Appointments On Calendar Start
    		global $wpdb;
    		$serviceId= $_POST['serviceId'];
    		<strong>if(isset($_POST['action']) == "getServiceid") {
    		    $serviceId= $_POST['serviceId'];</strong>
    		$AppointmentTableName = $wpdb->prefix."ap_appointments";
    		$FetchAllApps_sql = "select <code>name</code>, <code>start_time</code>, <code>end_time</code>, <code>date</code> FROM <code>$AppointmentTableName</code> WHERE service_id=<strong><code>$serviceId</code></strong>";
    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Thanks i solve it ..

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Is there anyone to help me out…

    Thanks,

    Anand

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Thanks Ankit,

    For needful help ,Once again i would like to appreciate you for such a great plugin….

    Thanks,

    Anand

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Hi Ankit,
    I am using your plugin for appointment of Doctor.

    Thanks,

    Anand

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    I have made the following changes :

    i. I have made the calendar clock 24 hrs. instead of 12 hrs.

    ii. I am populating the staff into secondary window with radio button on service selection.

    iii. Showing only available slots only.

    iv. Using “timeoff” as “time availability” by changing the condition

    Regards,

    Anand

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Thnaks Ankit, not an issue..

    One more question please :Code Changes i am doing into free version would reflect, when i will upgrade it into premium version ?

    I am new in WordPress..

    Thanks,

    Anand

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Thanks Ankit , Many many thanks to you!!

    I would like to test it for two service, coming future i can purchase premium version when i’ll start it for business purpose.

    So can i customize it for two services ?

    Thanks,

    Anand

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Also some services are weekly available but some of their slots are showing in daily.

    Regards,

    Anand

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

    Thanks Frank,

    You are right business hour(Calander setting) is set to 08:00 – 21:00, but service2 hour is set to 10:00 – 16:00. Then why in service2, availability shown 08:00-16:00.

    Thanks,

    Anand

    Thread Starter Anand Kr mishra

    (@anand-kr-mishra)

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

    Thank you so much…

    Regards,

    Anand

Viewing 15 replies - 1 through 15 (of 20 total)