Appointments+ paid add-ons to appointments

We're looking to use Appointments+ on a new site we're developing, and were wondering if it's possible to have purchasable add-ons to appointments? For example, somebody booking a time slot might also want to hire a projector, or coffee facilities which will be fixed price addons.
Ideally, we would like a way of filtering/adjusting the final price based on custom field selections.
Is there an action hook/function in the plugin so we can see if we can add this functionality ourselves?

  • Adam Czajczyk

    Hi Will

    I hope you're well today and thank you for your question!

    As Katya already explained during the chat, this is not possible out of the box. There is an option to add custom fields in a form of checkboxes to appointments booking form so that could let you add "add-on options" but the question is how to use that to calculate final price.

    Our developers are currently looking into it, to see if that would be possible with some hooks/filters that would let you either affect the price in A+/MarketPress.

    Please note that it might take them a bit more time to respond since they're dealing with a lot of complex issues at the time. Please keep an eye on this ticket and we'll update you as soon as we get more information on this.

    Best regards,
    Adam

  • Panos

    Hi Will ,

    The "Additional Fields" add-on is not designed for this purpose I am afraid and this request exceeds the purpose of the support forum. This requires some custom coding for which you could hire a skilled developer from :
    https://premium.wpmudev.org/wordpress-development/

    If you have some developing experience I have prepared a snippet that can be used as a guide. It adds a fixed price when using the Appointments PayPal gateway.

    You can download the file from here:
    https://gist.github.com/wpmudev-sls/cfe54ac4980093586b6aecde2e90388d
    unzip and upload to the wp-content/mu-plugins folder (if that folder doesn't exist you can simply create it).

    In order to test it you can create a new Additional field and name it "Coffee". It should be adding 10 to the price.

    If this works in your test you cn modify the field name and price in lines 43 and 44:

    $this->additional_price = 10;
    $this->field = 'coffee';

    Hope this helps!
    Cheers!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.