Remove Appointment Required Field
This support request was posted in General Support by danblank
- danblank March 25, 2014 at 11:06 am
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 March 25, 2014 at 2:46 pmHi There,
Thanks for writing.
You mean the date selection?
Best,
Juan.danblank March 25, 2014 at 2:47 pmYes please, i just want to remove this as my client does not want customers to pick a date.
Juanfra Aldasoro March 25, 2014 at 3:22 pmHi,
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.danblank March 25, 2014 at 3:29 pmok 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 March 25, 2014 at 5:33 pmHi 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.danblank March 26, 2014 at 3:20 pmHi Juan.
We removed this line but unfortunately it did not stop the theme from asking for the appointment!
Juanfra Aldasoro March 26, 2014 at 3:41 pmHi,
Would you please paste here the content of the line that you have removed?
Best,
Juan.Juanfra Aldasoro March 26, 2014 at 4:56 pmHi 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.
You must be logged in to reply to this topic.