Jump to content

zenk

Member
  • Posts

    3
  • Joined

  • Last visited

Everything posted by zenk

  1. i have done that. module work when cron is run. but it doesnt fire when i press "Send Reminder" button in admin area at invoice page (invoices.php?status=Unpaid) 😕
  2. Anyone can help me on this? i cant get invoiceid in InvoicePaymentReminder hook
  3. Hi all i learn to create sms hook. when i try to use InvoicePaymentReminder hook, it just dont fire. function Reminder($vars) { dd($vars); $invoiceid = $_POST['invoiceid']; $type = $_POST['type']; if($type == "reminder"){ $sendMessageRequest3 = new SendMessageRequest([ 'phoneNumber' => 'xxxxx', 'message' => 'reminder invoice created, number'.$invoiceid, 'deviceId' => 123 ]); SendSms($sendMessageRequest3); } } add_hook('InvoicePaymentReminder', 1, Reminder($args)); before come this, i used InvoiceCreation hook and InvoiceCreated hook, it works well dd($vars) result is NULL kindly help me. thanks
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated