• Hi i need to display the “appointment” button on one page(my services) and would like to have “appointment”button and calender on another page(appoinment) i have been messing with the code for two days now and cant figure it out i tried the code on one of the post on here but nothing, i can get the button to display on the page i want but it doesnt function and doesnt look like the other “appointment” button that is in the shortcode [APCAL] it’s a plain button with no function when i click please help!!

    https://ww.wp.xz.cn/plugins/appointment-calendar/

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

    (@farazfrank)

    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

    Thread Starter ron24g

    (@ron24g)

    thanks figured it out!

    how can integrate the payment gangway when the client booking

    any can help me ?

    Plugin Contributor FARAZFRANK

    (@farazfrank)

    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

    boutzamat

    (@boutzamat)

    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 }?>

    boutzamat

    (@boutzamat)

    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.

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

The topic ‘Shortcode for "set an Appointment" button’ is closed to new replies.