Skip to content

Commit e50148e

Browse files
authored
Merge pull request #183 from bucketpress/patch-1
Make order item object key available in foreach loop
2 parents 625d4fc + 3759fd3 commit e50148e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

woocommerce-delivery-notes/templates/print-order/print-content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105
if ( count( $order->get_items() ) > 0 ) :
106106
?>
107-
<?php foreach ( $order->get_items() as $item ) : ?>
107+
<?php foreach ( $order->get_items() as $item_id => $item ) : ?>
108108

109109
<?php
110110

0 commit comments

Comments
 (0)