From a2789097837ff4fd6b7667afde938075cc2277a4 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 13 Nov 2012 15:22:27 +0000 Subject: [PATCH] tweak to last commit --- admin/includes/updates/woocommerce-update-1.7.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/includes/updates/woocommerce-update-1.7.php b/admin/includes/updates/woocommerce-update-1.7.php index 9a4786b93f5..3ee81eff18c 100644 --- a/admin/includes/updates/woocommerce-update-1.7.php +++ b/admin/includes/updates/woocommerce-update-1.7.php @@ -187,9 +187,9 @@ foreach ( $order_tax_rows as $order_tax_row ) { // Add line item meta if ( $item_id ) { - woocommerce_add_order_item_meta( $item_id, 'compound', absint( $order_item['compound'] ) ); - woocommerce_add_order_item_meta( $item_id, 'tax_amount', absint( $order_item['cart_tax'] ) ); - woocommerce_add_order_item_meta( $item_id, 'shipping_tax_amount', absint( $order_item['shipping_tax'] ) ); + woocommerce_add_order_item_meta( $item_id, 'compound', absint( $order_tax['compound'] ) ); + woocommerce_add_order_item_meta( $item_id, 'tax_amount', absint( $order_tax['cart_tax'] ) ); + woocommerce_add_order_item_meta( $item_id, 'shipping_tax_amount', absint( $order_tax['shipping_tax'] ) ); } // Delete from DB (rename)