Doctreat - Doctors Directory WordPress Theme

Contents

1. How to translate Calendar in Doctreat Theme

2. Why email took time to arrive or not working

3. Server Requirements

4. Dashboard Access

5. How to change currency and formatting

6. How doctor send request to hospital/clinic

7. How to install theme and import demo contents

8. How to setup page templates in Doctreat

9. How to setup offline payments

10. How to change dashboard icon images

11. How to setup CRON job and What is the purpose of CRON job

12. Read more about theme here

13. How to extend/change ​Elementor shortcodes

14. Why email took time to arrive or not working​

15. How to create user from admin

16. How to change default avatar for doctors, hospitals and patients

17. How to change "from email name" in WordPress

18. How to translate "Home" word in breadcrumbs

19. Booking Settings

20. How to translate or rename strings in theme and plugins

21. How to setup trail package

22. How to make Hospital base locations or custom locations

23. How to use elementor page builer in doctreat theme

24. Google Map API KEY

25. How to Update Theme, When New Update release

26. Page Speed

27. How to enable real-time chat

28. How to import users in bulk in Doctreat Theme

29. How to make the system paid/free for doctors

30. Why WooCommerce doesn't update package or bookings once PayPal is used

1. How to translate Calendar in Doctreat Theme

How to translate Calendar in Doctreat Theme

To change language you can add language two digit code in Theme Settings > Directory Settings


2. Why email took time to arrive or not working

Why email are not working

Please make sure if emails are not in spams or junks folders.

Why email took time to arrive

Email delay(arrival to the inbox) could be due to many reason. First of all this could be your email content. Some email providers like gmail take time to read content and decide either put it to spam or in inbox.

So your content should be strong, and don't write such kind of content which could be a suspicious.

This not related to theme because when any event trigger then it send email because php functions runs.

For testing purpose you can install this plugin https://wordpress.org/plugins/email-log/

When your click it will trigger an email and you can see on the back-end.

3. Server Requirements

Below are the server requirements for the theme

  1. Minimum PHP version should be 7.0 or PHP version > 7.0
  2. PHP Zip extension Should be Installed
  3. max_execution_time = 300
  4. max_input_time = 300
  5. memory_limit = 512
  6. post_max_size = 50M
  7. upload_max_filesize = 50M
  8. CURL should be enabled to download Unyson extensions and demo content.
  9. Node.js server should be installed( required only for real-time chat ) 
  10. allow_url_fopen and allow_url_include 
  11. Make sure GD & Imagemagick libraries should be installed on your server. Which is required to upload and generate images sizes

4. Dashboard Access

Admin can't access dashboard from front-end. 

Dashboard is only accessible for Doctors,Hospitals and Patients or regular user from front-end.

Please make sure you have logged in viaDoctors, Hospitals and Patients or regular user account. If you will login with admin account details from front-end then it will not show you dashboard. 

5. How to change currency and formatting

How to change currency

Admin can change the currency from WooCommerce settings page


6. How doctor send request to hospital/clinic

Send request to hospital/clinic

Go to Doctor dashboard menu > Appointment Setting :

Select the hospital or location and fill the form :

After accept the request hospital is available for bookings list.

7. How to install theme and import demo contents

How to install theme and import demo contents

-- Install Theme and required plugins
-- Please note php zip extension should be install at your server
-- Install required unyson plugin Extensions
-- Then go to Tools > Demo Content Install

Before installation's please make sure of your server meets the minimum server requirements 

https://amentotech.ticksy.com/article/14849/


8. How to setup page templates in Doctreat

How to setup page templates in Doctreat

For the search page, dashboard and health forum you have to create pages and then assign templates to them

And then go to Theme Settings > Search Doctors Settings > Search result page

and select created page here.

For Dashboard

Theme Settings > Directory  Settings >  Select dashboard page

9. How to setup offline payments

Setup offline payments

Admin can setup the offline payment for booking or packages.

Go to admin > Theme settings > payment settings

Now, Select the offline payment types.

Note : Offline payment support WooCommerce default payment gateways cod,cheque and bacs.

How to update packages in offline payment

After place offline payment admin is able to complete the order.

After complete the order doctors package is automatically update. 


How to update booking in offline payment

By using offline payment, Doctor is able to accept/reject the booking.Payment on arrival.

10. How to change dashboard icon images

How to change dashboard icon images

Please go to Theme Settings > Directory Settings and Dashboard Settings section

here you can change the icon images

11. How to setup CRON job and What is the purpose of CRON job

How to setup CRON job and What is the purpose of CRON job

First of all you need to install the Doctreat CRON plugin and then you need to set cron job interval to run the cron job as "once a monthly, once a weekly or once a day" in admin > Theme Settings > Payment Settings

Note : After change of cron job interval we need to deactivate and then active the Doctreat Cron Plugin (for save intervals in wp cron job)

After that we need to set cron job from cPanel for  wp-cron.php file located in WordPress root.

Go to the cPanel and then click on Cron Jobs

Then Setup a Cron Job according to your needs. 

Command will look something like that

wget -q -O - http://yoursite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

Why CRON JOB Is Required?

CRON Job is being used in doctreat for two purposes.

1) Generate Payouts for the doctors. 

2) Remove featured doctors listing if their package get expired


12. Read more about theme here

You can read more about our theme here : https://amentotech.ticksy.com/articles/100016137


Or check video Guide on YouTube 

13. How to extend/change ​Elementor shortcodes

Extend Elementor shortcode

Create folder extend/elementor/shortcodes in child theme and copy the shortcode file from doctreat_core/elementor/shortcodes to this folder.

For example you want to change anything in search form on home page. Just copy 

dc-search-form.php and paste into themes > doctreat-child > extend > elementor > shortcodes >



14. Why email took time to arrive or not working​

Why email are not working

There are couple of issues could be for email which are not being sent. Please make sure if you have added From Email in Theme Settings > Email Settings > From Email Settings 


This should be your server email address or you can try with your personal email address as well.

Or please make sure if emails are not in spams or junks folders.

Why email took time to arrive

Email delay(arrival to the inbox) could be due to many reason. First of all this could be your email content. Some email providers like gmail take time to read content and decide either put it to spam or in inbox.

So your content should be strong, and don't write such kind of content which could be a suspicious.

Secondly This could be due to your server and from email. We have from email settings on the back-end. It could be your domain email or your personal email.

You can try with gmail, it would come arrive early than your domain host email address etc.

This not related to theme because when any event trigger then it send email because php functions runs.

For testing purpose you can install this plugin https://wordpress.org/plugins/email-log/

When your click it will trigger an email and you can see on the back-end.

15. How to create user from admin

Create doctor or hospital  from admin: 

To create users (doctors,hospitals) from admin go to admin > Users > add user :

And Select the role type doctor or hospital.

To Import Users from csv,excel file

Go to Docteat Import user and then upload csv,excel file.

You can download sample file.click to download file

16. How to change default avatar for doctors, hospitals and patients

How to change default avatar for doctors, hospitals and patients

Images can be change from Theme Settings > Directory Settings > Images Settings 


17. How to change "from email name" in WordPress

How to change "from email name" in WordPress

By default wp_email function send emails from wordpress@yourdomain.com

So if would like to change this then you can use below plugin SMTP plugins to change this  https://wordpress.org/plugins/wp-mail-smtp/

18. How to translate "Home" word in breadcrumbs

How to translate "Home" word in breadcrumbs

You can go to Unyson > Extensions > Breadcrumbs

19. Booking Settings

Booking Settings

 Product/Packages section and create a booking product for payments.

Please make sure you have checked the Booking. Then set price to 1 or what you want, this price will be override by the booking price while booking process.




20. How to translate or rename strings in theme and plugins

How to translate theme

You can use Loco translate plugin to translate theme to any language or to update/change any text in the theme and plugin.


-- Install loco translate plugin

-- Please note : For translations your WordPress should have selected same language as language created in Loco translation.

-- Please make sure you have sync the pot templates for both theme (doctreat)and plugin (doctreat_core)

-- Then create and sync the  language  templates before add your translations.

-- Go to admin > loco translate > New Language :

-- Select the new language and choose location Other folder options :

-- Please note, Due to the plugin territory  some of our theme functionality can be found in the plugin. So you need to translate the both theme and plugin(doctreat_core).

Now you can find your each string in .po template

-- Please avoid to search long strings. Long string may be in parts so start typing word by word. For example don't search "Find your NEAREST" but search by typing "Find"

-- Select string from source text and translate it on below textarea.

One thing which is more important : Please check loco translate settings. Extracting Strings should have minimum size : 1000k


21. How to setup trail package

How to setup trail packages

Admin can setup a trial package for new users. This trial package will be assigned to new registered users on the site. 

This package will be assigned automatically. Also users  will not see any trial package in their dashboard. 

To create trial package go to Packages/Products > Select trial for doctor.


22. How to make Hospital base locations or custom locations

How to make Hospital base locations or custom locations

Admin can set either doctors should be select hospitals from available hospitals in the system or add custom locations or both 

Just go to Theme Settings > Directory Settings > Doctors locations?

 



23. How to use elementor page builer in doctreat theme

How to use elementor page builer in doctreat theme

Please check below video


24. Google Map API KEY

Very Important

Please note : There can be a google map API key in demo contents. We suggest you to change google map API key before use our theme and google maps. Otherwise google maps may stop after some time if you didn't change API key.
To create production API key, you must enable the billing for google maps, otherwise you key would be development purpose and this will not show Geo Location etc

https://developers.google.com/maps/documentation/javascript/get-api-key

Please enable the following API for google Map

1. Maps JavaScript API
2. Geolocation API
3. Places API

To change google map API key go to Theme Settings > API Settings > Google Map Key


25. How to Update Theme, When New Update release

How to Update Theme, When New Update release

Please download latest version of theme package from themeforest.net

Please go to your download section at themeforest and then download theme files :

And then you need to make sure that

-- You have backup your theme and plugin(doctreat_core) files. In case if you have made any changes in theme or plugin then it can be recover from backup.

-- You can either delete theme and plugin and upload newer one or replace files by using FileZilla or other file transfer protocol.

Please note: Don't import users or demo contents. It may override your database contents. You just need to replace/delete files.

Please backup you translation templates if you had added in theme languages folder

Thanks

26. Page Speed

Speed depends upon many things like your server speed, items being loaded on page, images and third party scripts. To increase page speed you can use any cache plugins

https://wordpress.org/plugins/wp-fastest-cache/

OR

https://wordpress.org/plugins/w3-total-cache/

And also optimize your images. 

https://wordpress.org/plugins/wp-smushit/


If you go for the paid plugins then we will suggest you to use below plugins

WP Rocket : https://wp-rocket.me/

Nitro Pack : https://wordpress.org/plugins/nitropack/

27. How to enable real-time chat

*****************************************************************************************************************

How to enable real-time chat

Please note real-time chat will only work if your server does support node.js and you are allowed to run forever commands to run server file. Mostly VPS and Dedicated servers allow you to run node server files.

*****************************************************************************************************************

Admin can enable real-time chat from the Theme Settings

First make sure that you have installed node and npm installed on your server. 

Either its shared hosting or dedicated hosting, and also make sure from your hosting provider that the port is enabled on which you have sending requests.

On shared hosting contact to your hosting provider and ask them to install node and npm, so you can easily run server.js file by writing this command node server.js from the terminal.

In case of dedicated server you have full access to install node and npm.

After verifying Please ask your hosting provider to run server.js file through SSH commands

Themes > doctreat > js > server.js


If you have not used any SSL certificate for your domain then without any problems you can run node chat server file. Just follow the below instructions.

Please ask your hosting provider how we can setup node server file

Then from Theme Settings you can enable either Inbox or real-time chat

Just add your host and open port in Theme Settings. Please note if you have used port other than 81 then please update port in server.js as well.

In simple inbox system, users will get messages on page refresh while in real-time chat system users will get instant messages without refreshing the page. 

If you have used SSL certificate for you domain, then make sure that you have access to your certificate files on your cpanel.

Normally SSL certificate files could be found below path on cpanel.

To make sure that which keys and cert file have used for SSL certificate, you can find that information on Cpanel SSL/TLS

After that click on Manage SSL

After clinking on Managed SSL Sites.

Copy the name of certificate file and then go to SSL folder path. ( ssl/certs )

Download the file on you PC and then go to ssl/keys folder to download the key file.

After that go to you theme directory and create the below folder path in your theme root location.

/doctreat/chat_ssl/

Rename the both files so you can remember them easily.

And upload your downloaded key and cert file to this folder.

Now open doctreat/js/server-ssl.js file


Now run the node server file from terminal like this node server-ssl.js

And check the chat it will work now on https secure protocol.

Note: Only Authorized certificates install on your domain will be recognize for your chat node server and no self-signed certificate will work on production server.

Extra Notes:

This below process is same for both situations either with SSL or without SSL.

Node JS Chat server only available or worked if terminal open, If you have mistakenly closed the terminal or logged out your session then the node chat server will be stop.

To run the node js chat app in background process install the npm process manager which is forever.

Run the below commands from your terminal.

npm install forever -g

It will install forever package globally, Note: If you have not installed forever globally then it will not work.

To start the node chat server run the following command.

forever start server-ssl.js

Do not bother the warnings it will run your application in background now.

To check which node processes are running on background enter the following command.

forever list 

(It will list down the all running processes for node js)

And to stop the node chat server enter the below command.

forever stop server-ssl.js

For your eyes only


28. How to import users in bulk in Doctreat Theme

How to import users in bulk in Doctreat Theme


Importing for bulk users (doctors, hospitals and regular users) need to create a excel file with the following formats :

29. How to make the system paid/free for doctors

How to make the system paid/free for doctors

To make system free for the doctors, admin can make it free from Theme Settings > Directory Settings.


If you want to make hiring as offline and want to remove checkout process the  you can do that from Theme Settings > Payment Settings 

 

30. Why WooCommerce doesn't update package or bookings once PayPal is used

Why WooCommerce doesn't update package or bookings once PayPal is used

We have used WooCommerce for the packages and bookings process and have used below hooks

Most payment methods use above hooks to process the order.

Any gateways that defaults to On Hold or Pending Payment instead of Processing will not process the order against packages update or booking.

For this you also contact to PayPal about this situation. To make sure this, you can try to use Stripe Credit card payments plugin, which sends the status processing and all the functions of our theme seems to be working fine.