Remove Appointment Required Field

This support request was posted in General Support by danblank

Request ID #3746 In Progress
  • I would like to keep the widget for the appointments on the home page however i would like to remove the appointment selection as it is not required.

    Juanfra Aldasoro

    Hi There,

    Thanks for writing.

    You mean the date selection?

    Best,
    Juan.

    Yes please, i just want to remove this as my client does not want customers to pick a date.

    Juanfra Aldasoro

    Hi,

    Thanks for your fast response.

    Unfortunately that can’t be done through the theme options, you’ll need to edit the javascripts in order to avoid having the date field as mandatory.

    I’d recommend you to have a look at the nice_appointment_js() function in /includes/scripts.php

    And also, to remove the field, you’ll need to edit the widget in /paeon/includes/widgets/widget-appointments.php

    Best,
    Juan.

    ok so basically there is no way of doing it without serious javascript knowledge?????????

    This is out of our scope which is why we nought the theme!

    Juanfra Aldasoro

    Hi Dan,

    Thanks for writing back.

    Yes, at the moment the way to do that would be editing a few lines of code. For example, removing the line #372 of the file /includes/scripts.php will remove the restriction of having the date field as mandatory.

    Every single product has its own restrictions regarding options and customisability, in this case, at the moment, with the theme as it is right now the only way to achieve what you need is digging into a bit of code.

    Thanks,
    Juan.

    Hi Juan.

    We removed this line but unfortunately it did not stop the theme from asking for the appointment!

    Juanfra Aldasoro

    Hi,

    Would you please paste here the content of the line that you have removed?

    Best,
    Juan.

    “date”:{“required”:””},

    Thanks Juan!


    “date”:{“required”:””},

    will not allow me to paste full code!

    Juanfra Aldasoro

    Hi Dan,

    Thanks.

    I get it. So, you remove that line and you still get the error message when trying to submit the form?

    Best,
    Juan.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server