Skip Navigation

[Closed] send notification email when promotion expires

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.

This topic contains 16 replies, has 2 voices.

Last updated by Shane 6 years, 2 months ago.

Assigned support staff: Shane.

Author
Posts
#301157

Hello,
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 ?
Thank you

#301499

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

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.

Thanks 🙂

#301851
offer.png
meta.png

Hello,
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

#302084

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi,

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.

Thanks

#302087

Hello,
You are off topic
I need only to notification email when Date > Now
Thank you

#302093

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi,

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.
Thanks

#302108

Hello,
If i understand you, i have to create a new form and i have to create/modify promotions via this form ?

#302109

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi,

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.

Thanks

#302110

Please make the next post private and i give you access to help me
Thank you

#302111

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi,

The next post the private field enabled for you to attach the credentials.

Thanks

#302129

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2015-05-08 at 12.08.27 PM.png

Hi,

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.
Thanks

#302139

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.
Thank you

#302141

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi ,

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.

Thanks 🙂

#302146
offers_backoffice.jpg
offers_front.jpg

Please see this post :
hidden link
and the attached images

offers_backoffice.jpg : how promotions are set in backoffice
offers_front.jpg : how promotions are displayed in the front

Thank you

#302544

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2015-05-11 at 10.28.01 AM.png

Hi,

I set the expiry date information for the child post instead of the parent.

See Screenshot.

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.
Thanks

The topic ‘[Closed] send notification email when promotion expires’ is closed to new replies.