Refund subjects when order contains downloadable product.
This commit is contained in:
parent
19e8cc4634
commit
817f8476ac
|
@ -103,10 +103,7 @@ class WC_Email_Customer_Refunded_Order extends WC_Email {
|
|||
* @return string
|
||||
*/
|
||||
function get_subject() {
|
||||
if ( ! empty( $this->object ) && $this->object->has_downloadable_item() )
|
||||
return apply_filters( 'woocommerce_email_subject_customer_refunded_order', $this->format_string( $this->subject_downloadable ), $this->object );
|
||||
else
|
||||
return apply_filters( 'woocommerce_email_subject_customer_refunded_order', $this->format_string( $this->subject ), $this->object );
|
||||
return apply_filters( 'woocommerce_email_subject_customer_refunded_order', $this->format_string( $this->subject ), $this->object );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -116,10 +113,7 @@ class WC_Email_Customer_Refunded_Order extends WC_Email {
|
|||
* @return string
|
||||
*/
|
||||
function get_heading() {
|
||||
if ( ! empty( $this->object ) && $this->object->has_downloadable_item() )
|
||||
return apply_filters( 'woocommerce_email_heading_customer_refunded_order', $this->format_string( $this->heading_downloadable ), $this->object );
|
||||
else
|
||||
return apply_filters( 'woocommerce_email_heading_customer_refunded_order', $this->format_string( $this->heading ), $this->object );
|
||||
return apply_filters( 'woocommerce_email_heading_customer_refunded_order', $this->format_string( $this->heading ), $this->object );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -164,6 +164,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Fix - Tab hiding with some theme markup.
|
||||
* Fix - Ajax variations: stripslashes to fix attributes with quotes.
|
||||
* Fix - No longer returns to the first variation list page when deleting one variation.
|
||||
* Fix - Refund subjects when order contains downloadable product.
|
||||
* Tweak - Disable display_errors during ajax requests to prevent malformed JSON.
|
||||
* Tweak - When merging shipping taxes with a shipping rate taxes, ensure shipping rate taxes is not malformed.
|
||||
|
||||
|
|
Loading…
Reference in New Issue