Hey there Shannon Whitty,
How are you doing today?
You can find plugin docs on the plugin project page here: http://premium.wpmudev.org/project/appointments-plus/#product-usage and also there is a plugin FAQ section in your admin which you can check by going to Appointments -> FAQ.
As for your questions I’d be more than happy to assist you with them π
1. There is an option that allows you to set additional price for your providers, so what you could do is set the price for service to 150$ and then set 50$ additional price for your Senior service provider in Appointments -> Settings -> Service Providers, see screenshot http://screencast.com/t/jNT4GhtS.
2. Unfortunately this is not possible, as a workaround you could create multiple services based on the time of day.
3. This should be possible with some custom CSS. To remove price field please try adding the following CSS code to Appointments custom CSS tab which is located in Appointments -> Settings -> Display Settings -> Additional css Rules
.appointments-confirmation-price {
display: none !important;
}
Hope this helps π
Cheers,
Bojan
Thread Starter
SJW
(@whitsey)
Hi,
Those docs are very, very basic. Is there no information on how to edit templates? Do you hooks available? Can I copy template files into my theme directory???
Is there anything anywhere that talks about theme integration from a technical perspective?
I’m looking for integration docs- not how to configure basic settings.
– i want to rename some fields in the booking form
– i want to add some additional information to cater for the shortfalls of the product
Hey again Shannon,
Is there no information on how to edit templates? Do you hooks available? Can I copy template files into my theme directory???
Appointments is using shortcodes to display information on pages, so for example if you check “make an appointment” page you’ll see the following shortcode there:
[app_my_appointments]
[app_services] [app_service_providers]
[app_monthly_schedule]
[app_pagination month="1"]
[app_login]
[app_confirmation]
[app_paypal]
You can find more information about available shortcodes in Appointments -> Shortcodes, so I’m not really sure which templates are you trying to edit.
If you’re referring to developer documentation unfortunately at the moment we don’t have one for Appointments plugin.
Is there anything anywhere that talks about theme integration from a technical perspective?
Appointments should work on any theme so there is no special integration needed.
– i want to rename some fields in the booking form
This can be done by using plugin translation files, please let me know if you need more help with this one.
– i want to add some additional information to cater for the shortfalls of the product
Not really sure what you mean, can you please add more details on what you’re trying to do so I can understand it better.
Best regards,
Bojan
Thread Starter
SJW
(@whitsey)
Can I just edit translation files directly? Do I need to do anything specific like copy to a different name to avoid future updates overwriting?
Everything I want to do is on the booking form.
I want to add additional text underneath existing labels and rename some labels
Hey again,
The file you can find there (/wp-content/plugins/appointments/languages) is a .pot file, which is an empty translation file.
Open the file and save it as appointments-en_US if you’re using English (United States) in Settings -> General. For other languages you’ll have to use different extension.
Save the file with the changes in /wp-content/languages/ and translation files will be safe after update.
As for adding additional text under existing labels this would be possible by using Additional fields add on but as this is not available in free version of the plugin I guess we can just append some text after those fields with some jQuery. Please let me know what exactly you have in mind.
Best regards,
Bojan
Thread Starter
SJW
(@whitsey)
Thanks, I have every intention of paying for pro version as soon as I am confident I can do everything I want.
The additional text is a half-arsed workaround to try and get around the fact that the tool won’t allow “after hours” pricing. I want to be able to add a note/message which says something like “after hours … Extra $xxx…”
Hey again,
Actually there is a filter we can use to add text to the confirmation box. Please try adding the following to your themes functions.php:
function my_app_add_conf_text ($txt='') { $txt .= "<b>INSERT YOUR TEXT</b>"; return $txt; }
add_filter('app_additional_fields', 'my_app_add_conf_text');
Replace dummy text with your own, this should add text above the confirmation button http://screencast.com/t/8AHMMnCnQ.
Looking forward on seeing you on WPMU DEV forum π
Best regards,
Bojan
Thread Starter
SJW
(@whitsey)
The ext change via functions.php works fine.
But the language file didn’t change
I opened /wp-content/plugins/appointments/languages/appointments.pot
I saved it as /wp-content/plugins/appointments/languages/appointments-en_AU.pot (for Australia)
I changed “Price” to “Fee” everywhere in the file and saved it
No Change.
I also copied and renamed /wp-content/plugins/appointments/languages/appointments-en_US.pot just to double check
No Change.
https://www.dropbox.com/s/tefwvzzmpfgiogk/CIM.PNG?dl=0
What am I missing?
Hey again Shannon W,
The file extension is not good.
.pot is an empty translation file. If you’re using Poedit for example by simply saving file in Poedit after making changes and naming it appointments-en_AU you should get two files:
appointments-en_AU.po
appointments-en_AU.mo
Copy those two files and the translation should work π
Hope this helps π
Cheers,
Bojan
Thread Starter
SJW
(@whitsey)
I opened the file, found “Price” and replaced it with “fee” and the saed the new file as appointments-en_AU.pot
Are you suggesting I need to just drop the .pot and save without the extension?
I’m not using POedit – I’m using Notepad++
Hey again Shannon W,
I’d strongly suggest using Poedit to change text in translation files.
Poedit is really easy to use, you can simply search for the text and then add your own text in the translation field, see screenshot http://screencast.com/t/nT4vLl4TY.
You should be adding .po and .mo files to your language folder instead of .pot, you can find more info about the difference here http://www.icanlocalize.com/site/tutorials/how-to-translate-with-gettext-po-and-pot-files/
Best regards,
Bojan