Add user ID to shipping packages

This commit is contained in:
Lee Willis 2014-02-02 22:30:17 +00:00
parent a078b942e7
commit 8446e73c49
1 changed files with 1 additions and 0 deletions

View File

@ -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();