woocommerce/templates/emails
Marcel M. Cary a0cb6a9166 Fix error when rendering customer invoice email
When sending a customer their invoice on a non-pending order, I get this
error in the logs:

    PHP Fatal error: Uncaught Error: Using $this when not in object context in
    wp-content/plugins/woocommerce/templates/emails/plain/customer-invoice.php:37

    Stack trace:
    #0 wp-content/plugins/woocommerce/includes/wc-core-functions.php(208): include()
    #1 wp-content/plugins/woocommerce/includes/wc-core-functions.php(228): wc_get_template('emails/plain/cu...', Array, '', '')
    #2 wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-invoice.php(165): wc_get_template_html('emails/plain/cu...', Array)
    #3 wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(502): WC_Email_Customer_Invoice->get_content_plain()
    #4 wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-invoice.php(130): WC_Email->get_content()
    #5 wp-content/plugins/woocommerce/includes/class-wc-emails.php(338): WC_Email_Customer_Invoice->trigger(288402, Object(WC_Order))
    #6 wp-content/plugins/woocommerce/templates/emails/plain/customer-invoice.php on line 37
    referer: wp-admin/post.php?post=nnnnnn&action=edit

Change the "$this->object" reference to "$order" instead.
2018-11-10 14:07:55 -08:00
..
plain Fix error when rendering customer invoice email 2018-11-10 14:07:55 -08:00
admin-cancelled-order.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
admin-failed-order.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
admin-new-order.php remove Over to you text from admin order confirmation email 2018-10-27 13:02:05 +05:30
customer-completed-order.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
customer-invoice.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
customer-new-account.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
customer-note.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
customer-on-hold-order.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
customer-processing-order.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
customer-refunded-order.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
customer-reset-password.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
email-addresses.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
email-customer-details.php HTML emails 2017-07-11 14:52:30 +01:00
email-downloads.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
email-footer.php Welcome to docs.woocommerce.com 2016-07-19 07:30:31 -03:00
email-header.php Revert "Drop repeated conditions for rtl aligning, use variable instead" 2017-03-20 22:21:44 +02:00
email-order-details.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
email-order-items.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00
email-styles.php Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD 2018-10-27 12:14:09 -08:00