Edit order of services in dropdown menu

I sometimes need to add services to my Appointments+ services but I need to place them along with other services from that same group. Which file can I manually edit to add services each time? Otherwise, new services are just added at the bottom.

Do you know how a user needs to select a service on A+ from a dropdown menu? Those services are added by me via the backend on the A+ > Settings > Services page. Each time I click on "Add New Service" it will add a new service at the bottom of the list, or the bottom of the dropdown menu that will appear to the user on the booking page.

My services are divided into groups and certain services need to be added to groups which are not at the bottom of the list.

I remember that there is a document somewhere I can access via FTP and change the number and order of the services to edit the list to fit my needs.

I am asking if you could point me to the right file so I can do that every time I have a new service to add.

@more
From what I know this is currently not possible... However I have notified the plugin developer about this. Hopefully his insights will help us figure this one out.
Please keep in mind though that plugin developers have a lot of responsibilities so this might take a bit longer than a normal ticket.

It is possible. I'm not so sure if it was Hakan or the developer that took over A+, who told me a few months ago to go to a certain location and just manually edit my services list. Unfortunately, I can not find that message. It might have gotten lost when I became an Elite member. When you add anything via WP admin, that data is stored somewhere, you just need to know where and can edit it manually. I clearly remember doing it before, I rearranged my whole services list assigning different number to each srvice so they will be sorted properly in dropdown menu website users see.

As @aristath said, the services are stored in the database, so there isn't a file you can change to re-order them. You can, however, achieve what you need with some custom code. Just before the drop-down list is generated, the services list will be passed through a filter named "app_services". You can hook up to this filter and re-order your services in any way you need them shown. The first and only argument passed to the function hooked up to this filter will be a PHP array of services and whatever this function returns will be used as a list of services when generating your drop-down field. I hope this helps.

I know we can add a shortcode to have the services in the dropdown listed in alphabetical order. But what if we want them in a more specific way??? Much like @more said, we have services that we would like to have be listed next to each other in the dropdown because they are similar in nature. Could this potentially be added in a future update?

I have notified the plugin developer again on this post requesting his assistance on this issue.
This is beyond my level of expertise folks, I will have to ask you to be a little patient until he gets here and help us out.

This code snippet will hook up to "app_services" filter and re-order them according to their respective capacities. The "my_app_order_services" function is where this is being set up. The "my_app_compare_service_capacities" function is the "comparator" function - a helper function that performs the actual comparison between the service capacities, which is then used for sorting. I hope this helps.

Thanks for the question. Currently you can order by ID or Name in either ascending or descending order, like this:

[app_services order_by="name DESC"]

Would that work? Otherwise Ve's code above should help :slight_smile: you can place that into your functions.php theme file.

Then you can order the services based on capacity you have set for them I believe. If you go to Appointments > Seervices tab then you can set the capacity there.

Hope this helps! Let us know if you need any further assistance.

Cheers,
Tyler

PS. In the future if you can open a new thread instead of bringing up an old one that would be appreciated. You will receive more efficient support that way too because it keeps all your posted questions organized. You can always link to old threads of course, that information helps too :slight_smile:

It would be very helpful to be able to reorder services and service providers both by a normal A to Z sort but also custom with a drag and drop functionality. The current set up is not conducive to having a professional looking list if they should be sorted in a specific manner.

I will need to reenter most of the services list if I add something and I want it in the middle of the current list. I doubt I can do that once this is being used for appointments because I would be deleting and re-adding services.

I have over 150 service providers. I want them to appear alphabetically! Not in the order entered. This is not going to work well at all.

It would be great if you could open your own thread about this issue, as Tyler mentioned in the post above yours:

PS. In the future if you can open a new thread instead of bringing up an old one that would be appreciated. You will receive more efficient support that way too because it keeps all your posted questions organized. You can always link to old threads of course, that information helps too :slight_smile:

But, since we're already here, a slightly different version of the shortcode above does do exactly what you want, it allows you to list your providers alphabetically.

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: