Curt, I assigned this to you for awareness, but odds are Josh or Daniel can fiddle with this next week once an idea of what you want the email to say has been established.
I was able to fabricate a way to send out a custom "completed" order email when users upload Files to us via dashboard/upload-file/ Basically, I turned off the automatic trigger, and made my own pseudo trigger switch.
The template which we can modify is in our theme folder:
I uploaded a general template that can be used for all shop/bulletin/system emails. It isn't too far off from what you have done. See below. I also uploaded the PSD to the development folder titled Shipped-Email.psd.
Looks good Ryan. The only piece of info that I think has to be on there is going to be the special instructions. Where it says "File" that is going to say Bulletin, right? That is referring to the custom type you made. If that's the case we can probalby get rid of file_type: bulletin.
Are we able to change the subject too? Perhaps something a little more generic that can apply to any file upload (bulletin, insert, cover, etc).
Notified 3 people
Ryan Ross,Developer
Yes, and yes.
The special instructions are tied to the customer details, that I had previously commented out. (do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text );)
I'm not quite sure how to pull just the notes out, but I uncommented that section so you can see that they are there.
The "File" product will be converted to the type of file, Bulletin, Insert, etc. I agree that eliminates the need for the file_type portion, so we would eliminate that.
Yes, we can change the subject. The subject gets defined in class-wc-email-customer-completed-order.php (included in Elias). Eventually I'll make that a setting that can be changed in WC, but for now it's hard coded.
Notified 3 people
Ryan Ross,Developer
The "File" product has been replaced with the correct 'type'. Uploading a cover for example, will show product "Cover" in the order summary. file_type removed accordingly.
I was able to fabricate a way to send out a custom "completed" order email when users upload Files to us via dashboard/upload-file/ Basically, I turned off the automatic trigger, and made my own pseudo trigger switch.
The template which we can modify is in our theme folder:
/diocesan/woocommerce/emails/customer-completed-file-upload.php
I did some light modification to be able to distinguish which template was used.
Are we able to change the subject too? Perhaps something a little more generic that can apply to any file upload (bulletin, insert, cover, etc).
The special instructions are tied to the customer details, that I had previously commented out. (do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text );)
I'm not quite sure how to pull just the notes out, but I uncommented that section so you can see that they are there.
The "File" product will be converted to the type of file, Bulletin, Insert, etc. I agree that eliminates the need for the file_type portion, so we would eliminate that.
Yes, we can change the subject. The subject gets defined in class-wc-email-customer-completed-order.php (included in Elias). Eventually I'll make that a setting that can be changed in WC, but for now it's hard coded.