Hello!
1 and 2:
The plugin actually doesn’t send emails it just attaches the pdfs to the woocommerce emails that you configure to have the pdf.
So you can use another plugin like https://woocommerce.com/es-es/products/custom-order-status/ and attach the pdf to the emails that this plugin sends, this plugin will also let you add new order status.
3: It is possible to generate the pdf programmatically I can give you the code to generate it or if you want I can do this customization for you but since this would take a considerable amount of time i would need to charge you a fee (I charge $50/hr), if you are interested let me know.
Regards!
Thanks for the great advice! I would be very happy to receive the code to generate the PDF’s.
Okay, I tried: https://nl.ww.wp.xz.cn/plugins/bp-custom-order-status-for-woocommerce/
The PDF does not get generated on the custom order status. Could you please check? When the custom mail arrives, there is no attachment. Create the pdf when the order is (custom status 1), Attach the pdf to the following WooCommerce emails(if you don’t want to add the pdf to any woocommerce email leave this box empty) (mail status 1) Even if I create an extra status, just for generating the PDF, it does not work.
-
This reply was modified 2 years, 9 months ago by
joeri2023.
You can create the pdf with a code like this:
$order=wc_get_order(58);
$invoiceId=1;
require_once RednaoWooCommercePDFInvoice::$DIR. ‘PDFGenerator.php’;
$options=RednaoPDFGenerator::GetPageOptionsById($invoiceId);
$generator=\rnwcinv\GeneratorFactory::GetGenerator($options,$order);
$generator->Generate(true,true);
$output=$generator->GetOutput();
file_put_contents (“Path/were/you/want/to/save/it”, $output );
I am not familiar with that plugin but did the status that you created is shown in the template settings? and if so, did you configured the pdf to be generated on that status?
Yes! It works now! I am SOOO happy!