truong12a62009 Posted October 9, 2014 Share Posted October 9, 2014 Hello all! is there anyone know this problem? function mincoding_invoice_paid($vars) { $from = 'mymail@gmail.com'; $subject = "mincoding_invoice_paid"; $message = 'The test: invoiceid - ' . $vars['invoiceid'] . "<br/>"; $message = wordwrap($message, 70); mail("mymail@gmail.com",$subject,$message,"From: $from\n"); } add_hook("InvoicePaid",10,"mincoding_invoice_paid"); i try to change invoice status to Paid by not working.it work if i test with InvoiceCreated hook. i don't know why, pls help me! 0 Quote Link to comment Share on other sites More sharing options...
mbit Posted October 9, 2014 Share Posted October 9, 2014 Add payment to that invoice to make it paid and it will work. 0 Quote Link to comment Share on other sites More sharing options...
truong12a62009 Posted October 9, 2014 Author Share Posted October 9, 2014 thank you mbit, i dont know why we change status on this tab it's not working 0 Quote Link to comment Share on other sites More sharing options...
mbit Posted October 9, 2014 Share Posted October 9, 2014 If an invoice is to be marked as paid, then it's expected for it to receive a payment... and that's the way it should be. Adding payment to any invoice (full amount) will mark the invoice as paid and it will trigger everything else related to that invoice status. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.