From 8446e73c4942e52f2e9b815d07ab0cb7b6d07297 Mon Sep 17 00:00:00 2001 From: Lee Willis Date: Sun, 2 Feb 2014 22:30:17 +0000 Subject: [PATCH] Add user ID to shipping packages --- includes/class-wc-cart.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/class-wc-cart.php b/includes/class-wc-cart.php index 1e4ab0df575..119f2aa783a 100644 --- a/includes/class-wc-cart.php +++ b/includes/class-wc-cart.php @@ -1298,6 +1298,7 @@ class WC_Cart { $packages[0]['contents'] = $this->get_cart(); // Items in the package $packages[0]['contents_cost'] = 0; // Cost of items in the package, set below $packages[0]['applied_coupons'] = $this->applied_coupons; + $packages[0]['user']['ID'] = get_current_user_id(); $packages[0]['destination']['country'] = WC()->customer->get_shipping_country(); $packages[0]['destination']['state'] = WC()->customer->get_shipping_state(); $packages[0]['destination']['postcode'] = WC()->customer->get_shipping_postcode();