Skip to content

Commit d80de02

Browse files
committed
Defined a function which was thorwing an fatal error on printing invoices after updating to v4.6.3
Fix #186
1 parent 0ea3c64 commit d80de02

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

woocommerce-delivery-notes/includes/wcdn-template-functions.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,15 @@ function wcdn_additional_product_fields( $fields, $product, $order ) {
353353
return array_merge( $fields, $new_fields );
354354
}
355355

356+
/**
357+
* Check if a shipping address is enabled
358+
* Note: In v4.6.3, we have removed this function but it throws the fatal error on printing the invoice if someone have customized the invoice and copied print-content.php file in thier theme so from v4.6.4 we need to keep this function as blank.
359+
*
360+
* @param object $order Order object.
361+
*/
362+
function wcdn_has_shipping_address( $order ) {
363+
}
364+
356365
/**
357366
* Check if an order contains a refund
358367
*

0 commit comments

Comments
 (0)