Okay
  Public Ticket #3833638
Error in schedules due to privileges
Closed

Comments

  • ZeusTechnology started the conversation

    Hello! I am setting up an Amelia user on my WordPress, so I have created a new role, from the role: Amelia Employee. I have already configured the time zone for my employees and WordPress and it works perfectly. Having said that, there is something that does not work well and that is when I activate the option: amelia_read_others_appointments in my user, which causes the time of my already registered appointments to be altered, showing them in the appointments section, with other times that are not the ones registered, why does this happen? The reason is because this employee is the boss of the others, and the same problem arises with the role: Amelia manager

  •  1,701
    Marko replied

    Hello there,

    Thank you for reaching out to us.

    I'm afraid we don't understand what exactly you want to achieve and what exactly is the issue? Can you explain in a little more detail and send us some screenshots or a short one-minute video? As far as we understand, you are changing default roles permission and since this is not built in Amelia we do not advise you on changing anything. If you change default roles that built in we are not sure if we will be able to help since this is a customization and use Amelia in a way it is not intended.

    We wish you all the best and hope you have a wonderful day ahead. 

    Kind Regards, 

    Marko Davidovic [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • ZeusTechnology replied

    Hi, I understand the confusion. I'll explain it another way: The problem is before and after adding the Amelia manager role to a user, since before assigning it to the user, the user can see the schedules correctly but when I make the user manager to manage the employees and so on, the schedules displayed in the appointments section change. That's the problem I have.

    Attached files:  ticket_after.png
      ticket_before.png

  •  1,701
    Marko replied

    Hello agian,

    Is this manager employee also? If this is the this is a conflict of roles and each user must have only one role with one mail.

    Why we ask. TIme zone in Amelia work like this. Admin and manager can see the booking in time zone that is set in WordPress.

    Employees can see appointments in their time zone that you have set in their employee modal.

    If he was employee then he could see his appointment in time zone that was set in employee modal. If you change this to manager they see time zone that is set in WordPress. Employees are not deigned to be managers also so this user needs to have 2 separate roles with 2 separate logins and 2 mails.

    We wish you all the best and hope you have a wonderful day ahead. 

    Kind Regards, 

    Marko Davidovic [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • ZeusTechnology replied

    Ok perfect, I'll do it separately with 2 accounts for the manager who is an employee. Thank you very much, but now, do you have any idea why when adding new services they are not shown on the site if the "show on site" option is activated?

  •  1,701
    Marko replied

    Hello again,

    You are most welcome, and we are glad that we were able to help you. as for new issue I'm afraid we don't understand what exactly you want to achieve and what exactly is the issue? Can you explain in a little more detail and send us some screenshots or a short one-minute video?

    Looking forward to your reply. 

    Kind Regards, 

    Marko Davidovic [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • ZeusTechnology replied

    Hello again, what should a notification look like? I need a reminder one day in advance and an additional notification that reminds me one hour before my scheduled appointment.

  •  1,701
    Marko replied

    Hello again,

    When you have several questions or issues please open a new seperate ticket, and we will help you there. In that way, issues and questions that are related to different subjects will be in separate tickets so other customers or our support agents can find them easily. 

    Our policy is to have one issue or question per ticket because of the reasons that are described already.

    Thank you for understanding. 

    For cron the best and easiest way to set this up is just to ask your hosting provider to set this, Since cron-reminder notifications are created and set on your server with your hosting provider,

    We can send you some instructions but if you are not familiar (even if you are) the best way is to ask them to set this up for you because it is their server and there can be several possibilities for each server.

    -

    Cron is not Amelia's feature cron is a WordPress feature. You can use cron with Amelia, but setting cron is not part of Amelia's support because it is not our feature. If your cron is not working and you cannot set it up, you need to contact your hosting provider so that they can set up cron for you.

    -

    We will try to help you as best we can in the meantime cron is a Linux utility that schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks like in our plugin for notifications.

    Depending on the server, there are different configurations for it, which you can contact your hosting provider about, or you can check out one of the solutions for it on this link.

    Also, you can try this:

    */15 * * * * wget -q -O - "https://www.yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send"

    Or this:

    */15 * * * * /usr/local/bin/php ~/public_html/wp-cron.php --action='wpamelia_api' --call='/notifications/scheduled/send'

    Or this:

    GET 'https://yourdomain.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send' > /dev/null

    WP Crontrol plugin is the best option if you're not familiar with cron jobs. You can find more info about it, and detailed instructions on how to set it up in our FAQ section.

    So, if you already read that, and still need some clarification here's some further info.

    You copy only the URL from below a scheduled notification:

    7810032183.png

    Then, go to Tools/Cron Events, and click on the "Cron Schedules" tab. In it, add a 15-minute interval:

    2487877415.png

    Then go back to the "Cron Events" tab and click on "Add new":

    9085918175.png

    Below it, select the "PHP Cron event" radio button, and add the URL you copied from Amelia/Notifications in this form:

    file_get_contents("yourURL");
    2095163400.png

    Below it add the name and set it to run a few minutes in the future, using the provided time format. So, if you're adding the cron event at 12:45 (local, current time), set it to run at 12:50; and then select the schedule you previously selected:

    7642938415.png

    Click on Add Event, and that's it.

    The cron runs every 15 minutes and checks if there's an email to be sent. So, in Amelia Notifications, your scheduled notifications are set to run every day at a certain time. If you set that time to be 15:00 (for example), the emails will be sent when the cron runs after that time.

    For example, there's an appointment booked for tomorrow, and it's currently 14:44 - the cron runs, but since it's not yet 15:00, it doesn't send anything. It runs again after 15 minutes, so at 14:59, but there are still no emails flagged by Amelia, so it doesn't send anything. Then it runs again at 15:14 and it sees there's an email that should've been sent at 15:00, so it sends the email. It will only send emails when Amelia sees an appointment scheduled for the next day.

    I hope that helps in case it doesn't please contact your hosting provider.

    Should you have any further inquiries, we kindly request that you open separate tickets for each question and we will gladly help you there.

    We wish you all the best and hope you have a wonderful day ahead.  

    Kind Regards, 

    Marko Davidovic [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables