Time range and price in calendar for Appointments+

I need to display the appointment duration on my site along with the price of the appointment in the calendar. Is there a possibility of doing this?

Currently it displays like this:
http://i.imgur.com/GqQY9Bt.png

I need it somewhere along the lines of this:
http://i.imgur.com/4jl2kuC.png

Any help is appreciated, thank you :slight_smile:

  • Kasia Swiderska

    Hello Raul,

    There is no out of the box option for showing this - but I will check with our second level support dev guys if there's a quick workaround for this.

    Please note that, developer response might be slower than usual staff response, so we appreciate your patience on this so if you're in a hurry to customize this then you can post a job in our job board where you can hire a developer to assist further:
    https://premium.wpmudev.org/wpmu-jobs/
    Please note that, no WPMU official staff members are allowed to work in the job board.

    kind regards,
    Kasia

  • Panos

    Hi Raul ,

    The easiest way is to modify file appointments.php and add this $ret .= '<div>' . $this->get_price() . ' </div>'; at line ~1832.

    It would require allot of work to replicate this function in a separate plugin in order not to modify directly a plugin's file which exceeds the purpose of this support forum. I believe this is the easiest way and it is simple to repeat after each update. It is not recommended to edit plugin files directly, but in this case it would be far more convenient to repeat this modification with every update than extending and re-creating the whole functionality to display the table in a separate plugin.

    How does this sound? If you agree you can do this change on your own, or if you don't feel comfortable editing php files you can send me ftp details and I'll do it for you :slight_smile:

    You can send that privately through our contact form: https://premium.wpmudev.org/contact/

    Select "I have a different question?" for your topic - this and the subject line ensure that it gets assigned to me.

    Send in:Subject: "Attn: Panos Lyrakis"
    - WordPress admin username
    - WordPress admin password
    - login url
    - FTP credentials (host/username/password)
    - link back to this thread for reference: https://premium.wpmudev.org/forums/topic/time-range-and-price-in-calendar-for-appointments
    - any other relevant urls

    Kind regards,
    Panos

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.