1

In my Woocommerce website I am using Follow-up Emails plugin for sending email to customer. On that Follow-up Emails I send coupon code to customer by using {coupon_code} email variables.

Now I would like to create a new custom variable for coupon expiry date.

Is there any way that we can hardcode in a coupon expiry date into the followup emails that customers receive?

LoicTheAztec
  • 229,944
  • 23
  • 356
  • 399
sarun
  • 298
  • 5
  • 23
  • I just don't use this plugin… sorry. As I can't test it, is not possible for me to get my code working … . But this is the good track: Follow-Up [Custom Variables](https://docs.woocommerce.com/document/automated-follow-up-emails-docs/custom-variables/) – LoicTheAztec Nov 10 '17 at 11:46
  • When i using your code i got this error: Fatal error: Uncaught Error: Call to a member function date() on null in – sarun Nov 10 '17 at 11:50
  • So you need to test first `$coupon_obj->get_date_expires()` to see if you get a WC_Date object. – LoicTheAztec Nov 10 '17 at 12:41

0 Answers0