Hello, i managed to maka a placeholder for signup email. But how to make one for "Pending invoice notifications to user" email? For signup email i use the hook Am_Di::getInstance()->hook->add(Am_Event::MAIL_TEMPLATE_BEFORE_PARSE, 'siteMailTemplateBeforeParse'); it looks like this dosnt seen to work for pending invoice notifications...
Ok. After taking a second look, it seems that the problem is with the getInvoice(); function that is not working(not returning an object) when called at the time of "pending_to_user" email(sending email immediately after the user chooses the "offline payment" type of payment. Is there a special way to get the invoice at this time?
Ok, i asked the same in support desk and got a really helpful response. The problem was that I was accessing the invoice like that: $p = $tmp['payment']; $invoice = $p->getInvoice(); ...but at that time of pending invoice emails"...if ($config['name'] == 'pending_to_user').... "there was no payment, so i needed to change to this: $invoice = $tmp['invoice']; ...