Skip to content

Commit 7b18f05

Browse files
authored
Merge pull request #187 from TycheSoftwares/issue-186
issue-186
2 parents 0ea3c64 + e8fc790 commit 7b18f05

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,17 @@ 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 and returning true value to avoid errors when function is called.
359+
*
360+
* @param object $order Order object.
361+
* @return boolean true
362+
*/
363+
function wcdn_has_shipping_address( $order ) {
364+
return true;
365+
}
366+
356367
/**
357368
* Check if an order contains a refund
358369
*

0 commit comments

Comments
 (0)