diff --git a/classes/class-wc-cart.php b/classes/class-wc-cart.php index 0d26c4ea492..8b023044b07 100644 --- a/classes/class-wc-cart.php +++ b/classes/class-wc-cart.php @@ -654,7 +654,7 @@ class WC_Cart { $woocommerce->add_error( __('You cannot add that product to the cart since the product is out of stock.', 'woocommerce') ); return false; } - + // Downloadable/virtual qty check if ( $product_data->is_sold_individually() ) { $in_cart_quantity = ( $cart_item_key ) ? $this->cart_contents[$cart_item_key]['quantity'] + $quantity : $quantity; diff --git a/readme.txt b/readme.txt index 72cf9d6b862..31138c52bde 100644 --- a/readme.txt +++ b/readme.txt @@ -154,6 +154,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Feature - Menu count for orders requiring admin action * Feature - 'supports' function for gateways. * Feature - Ajax powered coupon form on checkout. +* Tweak - Variations maintain selections after adding to cart. * Tweak - Improvements to the order tracking code, including better error messages * Tweak - EU states for tax * Tweak - woocommerce_shipping_chosen_method hook diff --git a/templates/single-product/add-to-cart/variable.php b/templates/single-product/add-to-cart/variable.php index d532cb4c36a..7c10ca4814c 100644 --- a/templates/single-product/add-to-cart/variable.php +++ b/templates/single-product/add-to-cart/variable.php @@ -21,7 +21,10 @@ global $woocommerce, $product, $post;