# Appointment duration - User needs the choice of duration on front end.

Hi guys... Everything looks like it's running great, except for one thing. All my appointments have a minimum of 30mins and i'd like to put a max of 3hrs and have my users choose the duration of their appointments. How can i achieve this?

• aecnu

Greetings ryanchaffe,

Thank you for the great question and how to limit an appointment to a maximum of three hours is possible by creating and presenting services equal to different service levels/times i.e. 30 minutes of service = service 30 etc. etc.

That should do the job for you and do not make a service that is longer then 3 hours.

Thank you for being a WPMU DEV Community Member!

Cheers, Joe

• ryanchaffe

Thanks Joe, but that would mean having 30 services each in 30 minute intervals... which would mean 180 items in a drop down menu. highly unproductive... i would have thought this would be covered... think of massage therapists and people who may have many different services and a client calls to book one block, or two blocks, etc...

• aecnu

Greetings ryanchaffe,

Thank you for your additional input above, it appears that I do not have all the information.

However, I see 6 services, one for each block.

service 1 = 30
service 2 = 60 = 1 Hour
service 3 = 90
service 4 = 120 = 2 hours
service 5 = 150
Service 6 = 180 = 3 hours

Obviously I was missing information to make a proper assessment.

Cheers, Joe

• ryanchaffe

Joe... i understand you're doing your job... not sure if you actually created the plugin or not. But the problem (and not just me having this problem) is that a client SHOULD be able to choose how much time they would like their appointment to be for.

We have 52 services (yes, i know that is lots, but we were not expecting this road block with the plugin) and i just CANNOT and will not spend the time making 52 x 6 = 312 services just so that i can add the blocks... Could you imagine a client on an iphone scrolling through 312 services rather than simply selecting 3 blocks of time?

Does this make sense?

• aecnu

Greetings ryanchaffe,

Thank you for the additional input which is greatly appreciated and no I am not the coder, actually I am not a coder at all not plugins nor themes, I am a network and server admin by profession :smiley:

I do agree with your point 110% and I had insufficient information to know to call in the lead developer on this and now that we (you and I) see and agree on the information and how this is not a viable solution the way the plugin currently works with the time - I will see if I can get the Chief lead developer in here with his invaluable insight into this plugin for his advice/advise for us.

Possibly he may have an immediate solution for us or can possibly code one up :slight_smile:

Though this may take a bit longer then a normal ticket, I will try to get him in here asap.

Cheers, Joe

• ryanchaffe

Joe, you've been great. Thank you. Nothing personal and forgive me if my tone came across as rude... WPMU for the most part makes fantastic plugins... but this one is lacking something very serious and hopefully the Chief can come up with a solution. That would be fantastic!!! Thanks.

• Hakan

Hi,

According to the design concept of this plugin, services lasting for different times are different services. In addition to that, service should be pre-defined before an appointment is applied for it.

So there is no possibility of the client choosing a variable duration on the front end unless you have already defined them as different services.

Cheers,
Hakan

• ryanchaffe

It's a shame that you go all out to make these plugins but tend to leave out VERY important aspects of them. Oh well... guess i'll know better next time. If you read our conversation above, you'd realize that i would then have to make 312 different services to appear in a drop down menu. NOT EFFICIENT

• Hakan

I see that it is very important for you, but this is a plugin for general use and it may not be suitable for 100% of the potential cases and we never claimed like that.

It is always possible to customize it, though, as this is a WordPress compatible plugin and codes are not encrypted.

Cheers,
Hakan

• aecnu

Greetings ryanchaffe,

Thank you for your additional input of course and I do understand it is not meeting your specific needs as it is coded for general use.

Just to touch base on what the lead developer mentioned about custom coding, the plugins are indeed non encrypted and GPL licensed, so one may modify and code as desired as long as the credits are not removed.

I am not a coder myself but if i wanted this custom coded, I would see if there's a developer available at wpmu jobs who could get onto it right this minute

Thank you for being a WPMU DEV Community Member and have a GREAT week ahead!

Cheers, Joe