We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 28b93b3 + 7f96c4c commit 138ddefCopy full SHA for 138ddef
woocommerce-delivery-notes/templates/print-order/print-content.php
@@ -107,8 +107,11 @@
107
<?php foreach ( $order->get_items() as $item ) : ?>
108
109
<?php
110
- $product = apply_filters( 'wcdn_order_item_product', $item->get_product(), $item );
111
+ $product = apply_filters( 'wcdn_order_item_product', $item->get_product(), $item );
112
+ if ( ! $product ) {
113
+ continue;
114
+ }
115
if ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', '>=' ) ) {
116
$item_meta = new WC_Order_Item_Product( $item['item_meta'], $product );
117
} else {
0 commit comments