Adding cart item resets shipping - so free shipping etc is selected when going over a threshold. Closes #116.

This commit is contained in:
Mike Jolley 2011-10-31 15:00:06 +00:00
parent 223f9ccad3
commit b5850a7087
2 changed files with 8 additions and 2 deletions

View File

@ -79,10 +79,15 @@ class woocommerce_cart {
/** sets the php session data for the cart and coupon */
function set_session() {
$cart = array();
$_SESSION['cart'] = $this->cart_contents;
// Set cart and coupon session data
$_SESSION['cart'] = $this->cart_contents;
$_SESSION['coupons'] = $this->applied_coupons;
// Cart contents change so reset shipping
unset($_SESSION['_chosen_shipping_method']);
// Calculate totals
$this->calculate_totals();
}

View File

@ -94,6 +94,7 @@ Yes you can! Join in on our GitHub repository :) https://github.com/woothemes/wo
* Added functions which show tax/vat conditionally
* Fixed variations - Incorrectly used instead $product_custom_fields of $parent_custom_fields
* Made use of transients to store average ratings and improve performance
* Adding cart item resets shipping - so free shipping etc is selected when going over a threshold
= 1.1.3 - 27/10/2011 =
* Improved Force SSL Setting - now forces https urls for enqueued scripts and styles