ron24g
Forum Replies Created
-
Forum: Plugins
In reply to: [Appointment Calendar] Shortcode for "set an Appointment" buttonit may not be exactly line #632 in your editor because mines is modified. but the line of code your looking for begins with the <——Display Booking Inscructions——>
just look around the 600 area line of code, just looked it up it s line 606 in appointment-calender-shortcode.Forum: Plugins
In reply to: [Appointment Calendar] "AppDate" second modal stuck on 01-01-1970yes it works fine with the dd-MM-yyyy format but i want the MM-dd-yyyy format on the first modal and the second modal and notification email as well, sorry for any mis- communication.
Forum: Plugins
In reply to: [Appointment Calendar] Shortcode for "set an Appointment" buttoni used this code, substitute “??” with the page id number u want the button on without the calender. file to modify :appointmentshortcode.php line: #632
<!—Display Booking Instruction—>
<?php if($AllCalendarSettings[‘apcal_booking_instructions’]) { ?>
<div style=”color:red;” id=”bookinginstructions” align=”center”>
<?php echo $AllCalendarSettings[‘apcal_booking_instructions’]; ?>
</div>
<?php } ?><?php
$pageID = get_the_ID();
if ($pageID == ??){?>
<!—Schedule New New Appointment Button—>
<div id=”bkbtndiv” align=”center” style=”padding:5px;”>
<button name=”addappointment” class=”apcal_btn apcal_btn-primary” type=”submit” id=”addappointment”>
<i class=”icon-calendar icon-white”></i>
<?php if($AllCalendarSettings[‘booking_button_text’]){
echo $AllCalendarSettings[‘booking_button_text’];
} else{
echo _e(“Schedule New Appointment”, “appointzilla”);
} ?></button>
<?php }else{?>
<!—Schedule New New Appointment Button—>
<div id=”bkbtndiv” align=”center” style=”padding:5px;”>
<button name=”addappointment” class=”apcal_btn apcal_btn-primary” type=”submit” id=”addappointment”>
<i class=”icon-calendar icon-white”></i>
<?php if($AllCalendarSettings[‘booking_button_text’]){
echo $AllCalendarSettings[‘booking_button_text’];
} else{
echo _e(“Schedule New Appointment”, “appointzilla”);
} ?></button>
</div><!—Show appointment calendar—>
<div id=’calendar’><?php }?>
Forum: Plugins
In reply to: [Appointment Calendar] "AppDate" second modal stuck on 01-01-1970file sent!
p.s. site url daisygotbraids.com
if you go to services or appointment page you will see tittle problemForum: Plugins
In reply to: [Appointment Calendar] "AppDate" second modal stuck on 01-01-1970hi, farazfrank figure this one out SORTA, LOL but in the shortcode around line 439
there is this code://Modal Form Works – show frist modal
jQuery(‘#addappointment’).click(function(){
var todaydate = jQuery.fullCalendar.formatDate(new Date(),’dd-MM-yyyy’);
jQuery(‘#appdate’).val(todaydate);
jQuery(‘#AppFirstModal’).show();
});AND THIS…….around line 691.
<script language=”javascript”>
function myChanged() {
var x = document.getElementById(‘date1’).value;
x = moment(x).format(‘DD-MM-YYYY’);
document.getElementById(‘appdate’).value = x;
}
</script>
changed format back its working fine now but ,if i change the date format to MM-dd-yyyy it will give me the that error 01-01-1970how can i get the MM-dd-yyyy format without the date being stuck on 01-01-1970
when i select a service, will put site live if i need to.
P.S.
also when i insert [APCAL] code it makes my header title rise up a little is there a fix?Forum: Plugins
In reply to: [Appointment Calendar] auto populate form (2nd modal) with current user infohi farazfrank i put in this line of code so that when a logged in user makes an appointment there info will be in the fields in the second cal modal
<?php
//Get Current User Login
global $current_user;
$current_user = wp_get_current_user();
$cunamef = $current_user->user_firstname;
$cunamel = $current_user->user_lastname;
$cumail = $current_user->user_email;
$cuphone = $current_user->phone1;
?>and added this value for user info for each field, respectively.
value=”<?php echo $cunamef, $cunamel; ?>” readonly
Forum: Plugins
In reply to: [Appointment Calendar] Shortcode for "set an Appointment" buttonthanks figured it out!
Forum: Plugins
In reply to: [Appointment Calendar] Shortcode for "set an Appointment" buttonThanks for responding farazfrank
If I remove the id=’calender’ won’t that remove the calendar all together!? I still want the calendar and button that’s in the regular [APCAL], but on another page I just want the button.
Thanks