This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
I have 2 cpt "offers" and "promotions", where "offer" are child of "promotions"
Promotion has a filed "Date", how can i send notification email when promotion date is over ?
Thanks for contacting our support forum.
I'm currently looking into this one as we may be able to achieve this with a custom hook.
This is not a feature of our plugins and it cannot be achieved by the use of our plugins only.
Can you give me some more information on how you have set things up?
For eg let me know if the expire date is a Custom field.
Provide me with as much information as you can.
Thank you for your reply and help
CPT Parent offer
CPT child offer-privilege
offre-privilge has 7 meta fields
activation / checkbox / enable ou diseable offer
order / numerical / to order by offers
date / date / availability date
Thanks for the additional information.
There is an option for this but it would require the use of our CRED plugin.
We have a comprehensive guide for setting up an expiration date for your Custom Post Type.
Please see the document here https://toolset.com/documentation/user-guides/automatic-post-expiration/
Let me know if you are having any issue with this and i'll be more than happy to help.
You are off topic
I need only to notification email when Date > Now
With the use of a custom field only you are not able to set an expiration date for the Promotion. Our CRED forms allow for this by adding the Post Expiration settings to the CPT.
How the post expiration settings work is that you can set the expiration date for the post that would be the same date that is on your Date custom field.
Once the expiration date has passed or the promotion date has passed an automatic email notification will be sent. This notification email is setup using our CRED plugin.
With the post expiration you will also have the option of having the post status itself being changed.
Please let me know if this makes things a bit clearer.
If i understand you, i have to create a new form and i have to create/modify promotions via this form ?
Yes that is correct you will need to create these promotions via this form.
Are you clear on how this works?
I will be happy to help you set this up if you like.
Please make the next post private and i give you access to help me
The next post the private field enabled for you to attach the credentials.
I have set up the CRED Form to send the notification here : hidden link
Also you can enable expiration on the posts by ticking the checkbox. See screenshot.
Please let me know if this helps.
Thank you for tour help.
This form dont solve the problem
As you can see on admin, the post has some offers (child custom post type) attached to it. Theses offers can expires but the main post dont have to expire !
Also this form dont allow to create the promotions.
I think the best solution, is to have a Hook in fonctions.php wich Check the date ans send an email.
I'm a bit confused at the moment.
Your website's default language is not English so its a bit difficult to read the translations.
Could you send me an example link to a post that you would want to expire ?
This will allow me to recognise the post type and understand a bit better.
Please see this post :
and the attached images
offers_backoffice.jpg : how promotions are set in backoffice
offers_front.jpg : how promotions are displayed in the front
I set the expiry date information for the child post instead of the parent.
What you can do is to go through the child posts setting the expiration date.
Here you can also modify the message to be sent when the offer expires hidden link
Please let me know if this was able to assist you.
The topic ‘[Closed] send notification email when promotion expires’ is closed to new replies.