Support

Home Forums Event Espresso Premium Help with  [PAYMENT_DUE_DATE_*] shortcode

Help with  [PAYMENT_DUE_DATE_*] shortcode

Posted: January 25, 2020 at 10:40 am


ncmensspringretreat

January 25, 2020 at 10:40 am

I am stumped finding an explanation for how to set the Payment due date shortcode. I am simply wanting to set it to 3 weeks before an event start and use in payment due reminder messages. Kindly point me in the right direction on this.


Josh

  • Support Staff

January 27, 2020 at 6:54 am

Hi,

You can find that information by clicking on the Help tab of the email template editor. Then click on Message Shortcodes. There you’ll find the following help text:

This is a special dynamic shortcode that allows one to output a payment due date. It will only result in a date shown if there is money owing. Three parameters are available on this shortcode:

format: This is used to indicate what format the date is in. Default is whatever is set as date formats for your website.
days_until_due: This is the number of days form the transaction creation date that the payment is due. Defaults to 30.
prefix_text: You can use this to indicate what text will prefix the date string. Defaults to “Payment in full due by:”

An example you could start with follows:

[PAYMENT_DUE_DATE_*days_until_due=21 prefix_text="Please pay in full by no later than: "]


ncmensspringretreat

February 1, 2020 at 7:21 pm

Thanks for the reply. If I read this correctly, this only dynamically references the transaction date. Is there any way to dynamically reference the event start date? Specifically, I would like the payment due message to state payment is due <event date – 21 days> as we are required to have all $ to the venue 3 weeks before our events. Any method for that one?


Tony

  • Support Staff

February 3, 2020 at 2:26 pm

There’s no dynamic shortcode based on the event date, you would need a custom shortcode (almost the same as [PAYMENT_DUE_DATE_*] just pulling in the DateTime and using that rather than the transaction).

If you are comfortable with PHP we have some details on how to add your own here:

https://eventespresso.com/wiki/messages-system-how-to-add-custom-message-shortcodes/

Another option is to use a custom field on the event and set the date for when the payment is due there.

In your message template you could then use [EVENT_META_*{custom-field-key}] to output whatever was set. For example if you set a custom field to ’21st March 2020′ with a key of ‘payment-due-date’ you could use:

Please pay in full by no later than [EVENT_META_*payment-due-date]

Would that work for you?


ncmensspringretreat

February 5, 2020 at 10:16 am

I will try the custom field method and see if I can get it to work.

The support post ‘Help with  [PAYMENT_DUE_DATE_*] shortcode’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso