moberhammer
Forum Replies Created
-
Ok, thanks!
Oh sorry than I understand my Problem. I thought that the customer_invoice is the one that will be send automatically after payment. So I have to change to customer_completed_order.
Thanks for your help!
Hi Ewout,
today I had time to test a little bit.
I have seen, that your function “attach_pdf_to_email” (Filter woocommerce_email_attachments) is only called with the statuses “new_order” and “customer_completed_order”. It is never called with “customer_invoice”, and I have set that only there the invoice will be attached.
You have any idea why?Thanks!
MartinHi Ewout,
I tried to “re”send manually with success. The pdf is attached.
I will put some debugoutput to find out more.
The Email is send, but without the pdf.
In the apache errorlogs aren’t any errors.I use the wpo_wcpdf_email_attachment only to copy the tmp generated pdf to a backuparchive and I see that my function is never called anymore.
add_action(‘wpo_wcpdf_email_attachment’, ‘woo_save_invoice_pdf’);
function woo_save_invoice_pdf($pdf_path)
{
error_log($pdf_path.’————–save pdf’);
copy($pdf_path, str_replace(‘tmp’,’archiv’,substr($pdf_path, 0, -4) . ‘.archiv.pdf’));
}I will try to send manually.
I see that the “wpo_wcpdf_email_attachment” action is never called.
Ok now its clearer.
Thanks for your fast help!
MArtin
Hi,
yes i’m using WPML, but also before I used it the invoice was everytime in german.
Why the creator uses everytime german translations?Thanks!
MartinForum: Plugins
In reply to: [Event Organiser] Show post_type "event" together with "post" not workingYeah! I solved that problem!
It had to to with the Polylang translations! The event post_type wasn’t set to transtlate int the polylang settings!Here I found the solution, also for WPML!
Hey,
great that do the job! I though this filter would only prevent creating the pdf for email attachment. But it also prevents incrementing the invoice number!
Thank you!!
Regarts Martin
Hi Ewout,
thanks for your answear!
Yes it’s unfortunately a little issue because our accounting has to book all invoices if I generate an invoice number for it.
Regards,
Martin