Hey Ron,
Here the instruction:
File: appointment-calendar-shortcode.php
File Path: \plugins\appointment-calendar-v-2.7.1\
Find below code: (code line no 627)
<!---Show appointment calendar--->
<div id='calendar'>
...
...
...
</div>
And remove the id=’calendar’ attribute from the <div> tag:
<!---Show appointment calendar--->
<div>
...
...
...
</div>
Thanks
Frank
Thread Starter
ron24g
(@ron24g)
Thanks 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
how can integrate the payment gangway when the client booking
any can help me ?
Hi Ranjith,
Sorry! but this feature available in premium version.
Try our demo at Appointzilla to understand PayPal integration.
This will help you.
Thanks
Frank
So, ron24g how did you do?
I didnt understand how, because i want to use a button as well to book from another page.
Thread Starter
ron24g
(@ron24g)
i 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 }?>
hmm, i tried copying your code and inserting it into the text editor in Wp on the “Text” tab, and i changed the “??” to the same id as the page i pasted the code on, but i get 2 buttons that doesnt work and shows some sort of php code inside of the buttons -.-
i tried looking at appointment-calendar-shortcode.php line #632 but it says: return false; so i think maybe we are using a differnet version of the calendar maybe? π
Thread Starter
ron24g
(@ron24g)
it 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.