I am trying to: I created an expiring custom post with 3 notifications, one for 3 days before, 1 day before and 5 hours before. Although the notifications are working the first time, when I tested by moving the date 4 more days before the day of expiration, I did not receive another 3 day noticed notification and neither 1 day notice.
I'm testing again today and extending the expiration for another 4 days, thus tomorrow I should receive a notification of expiring in 3 days. If I don't get a notification expiration, then the notification is not working once the date is changed in the back-end. It's not renewing basically. The notifications should reset once the expiration date is extended but it is not.
Hi Felipe,
Thank you for contacting us and I'd be happy to assist.
In order to test and reproduce this issue on my test website, I'll need to see how this form and its notifications are set.
Can you please share temporary admin login details along with the name of the form in question?
Note: Your next reply will be private and though no changes will be made on your website, please make a complete backup copy, before sharing the access details.
regards,
Waqar
Sorry, I forgot to send you the form ID: 29 (Formulário de Anúncio)
Hi Felipe,
Thank you for sharing the admin access.
I'll need to perform some tests with a similar form and notifications on my test website and will update you with my findings, as soon as this testing completes.
regards,
Waqar
Hi Felipe,
Thank you for waiting, while I performed some tests on my website.
I wasn't able to reproduce this issue and each time the post-expiration time was changed (from the post's edit screen), the remaining notifications were sent, based on that new time.
The first thing that I'll recommend is to install any email log plugin ( e.g. https://wordpress.org/plugins/email-log/ ), which will help in narrowing down whether email notifications are not triggering or the emails are not getting delivered on time.
Next, you can create a new test form and set it to add a new post which expires in 5 hours. You can include a notification email that is sent 2 hours before the post's expiry. To distinguish between the post notifications, you can include the placeholder "%%POST_TITLE%%" in the content of the notification, so that it is clear which post a particular notification email corresponds to.
After that please add two new posts through this form and for the post that was added last, you can manually update its post expiry by reducing 2-3 hours from it.
If the notification of the second post is received before the first one, it will mean that changing the post-expiration time updated the notification's time too.
I hope this helps and please let me know how it goes.
regards,
Waqar
Before I do that, did you extend the expiration through the back-end? Meaning wordpress dashboard of the custom post?
The reason I'm asking is because the custom posts are suppose to send notification of expiration, once the client pays, we, admin, will extend the expiration date in the back-end, not from end.
I wasn't able to reproduce this issue and each time the post-expiration time was changed (from the post's edit screen), the remaining notifications were sent, based on that new time.
You mention that the "remaining notifications" were sent... yes they will be sent. What I need and it should have been thought of when creating this feature is the resetting of the notification with the new expiration date.
For example, if I have a notification of 3 days before expire, 1 day and 5 hours, after the notifications of 3 days and 1 day are sent, and I decided to extend the custom post expiration another 30 days, then 27 days later, the 3 days notification should be send again. Do you understand that? Notification should reset after changing the date of expiration.
Hi Felipe,
Thanks for writing back and for sharing further details.
> Before I do that, did you extend the expiration through the back-end? Meaning wordpress dashboard of the custom post?
- Yes, I used the same interface available on the post's edit screen in the admin area, for these tests.
Based on your information, my further tests confirmed that the way this feature works, it can send the notification based on the new post-expiration date/time, only if a particular notification hasn't been sent.
If a notification has been sent and you'll change the post-expiration date/time afterward, then it will not be sent again.
( which is what your setup require )
I've passed on these findings with the concerned team for further review and will keep you updated with the progress through this ticket.
Thank you for bringing this forward.
regards,
Waqar.
Thank you and looking forward to a solution, since that's the only thing that is stopping me from going live with my site.
Hi Felipe,
Thank you for waiting and I've heard back from the concerned team.
Since this requirement ( to be able to use the form notifications in a recursive loop ) will require a major redesigning of how notifications are handled in the backend, this will need to be treated as a feature request.
You're welcome to add your voice for this feature through our dedicated form at:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Meanwhile, the Toolset Form API hooks ( ref: https://toolset.com/documentation/programmer-reference/cred-api/ ) and WordPress' event scheduling can be used, for developing a customized notification solution.
https://codex.wordpress.org/Function_Reference/wp_schedule_event
enlace oculto
At any point, you can also consider hiring a professional from our list of recommended contractors, for more personalized assistance around custom code:
https://toolset.com/contractors/
regards,
Waqar
Hey Waqar,
I know it's not your fault, but this notification feature should NOT be a feature request. It's only logical that if you create a tool with notification and expiration date that upon renew of the expiration date, notification should also be renewed. What kind of listing site only notify the user only once after expiration?
This only shows that the creators and developers don't think the whole feature through before releasing it. Lack of critical thinking.
Although Toolset "seems" like the perfect tool, it has only brought me disappointment and frustration for almost a year.
The support team, such as yourself, Christian, Midesh, and Beda have been wonderful but the plugin itself is very mediocre. I had to hire a programmer to create features that it should be in the plugin already.
Please pass along this message to the "concerned" team.
Thanks!
Hi Felipe,
Thanks for writing back and appreciate you shared your feedback.
The feedback and suggestions are important to us, as they help us improve in the right direction.
I'm going to pass this on internally and will request another review and will also keep you updated.
regards,
Waqar
Hi Felipe,
While the link between the post-expiration notifications and the control for it in the post edit screen, is still under review, It emerged that you can meanwhile use the front-end post edit form for your requirement.
You'll create a new Toolset Form to edit the same post type and set it to have the same post-expiration periods and notifications, as the form that creates these new posts. No fields ( other than the submit button and form messages ) will be needed in this form since the goal is to only use it to update the post-expiration date and re-assign the notifications.
When a post needs to be renewed, the admin can submit this edit form from the front-end, instead of using the option in the post edit screen.
You can make this form available on the front-end through:
1. A form edit link on the post itself, or
2. Through a view that shows all the posts and the edit link through a view, on a special page.
Here is a guide on using front-end post-editing forms:
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/
The access to this form and it's edit link can be restricted only to the administrators, using Toolset Access or View's conditional display blocks.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar