coupons in packages to prevent cached methods

This commit is contained in:
Mike Jolley 2012-05-01 20:24:22 +01:00
parent ba735619d1
commit c380861778
1 changed files with 1 additions and 0 deletions

View File

@ -1369,6 +1369,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
$packages[0]['applied_coupons'] = $this->applied_coupons; // Applied coupons - some, like free shipping, affect costs
$packages[0]['destination']['country'] = $woocommerce->customer->get_shipping_country();
$packages[0]['destination']['state'] = $woocommerce->customer->get_shipping_state();
$packages[0]['destination']['postcode'] = $woocommerce->customer->get_shipping_postcode();