From 6eb5215da043201f59c9f71a9ab5d20863c42317 Mon Sep 17 00:00:00 2001 From: kathy Date: Wed, 7 Nov 2012 14:53:23 -0600 Subject: [PATCH 1/2] fix for #1707 --- templates/checkout/form-pay.php | 4 +++- templates/checkout/review-order.php | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/checkout/form-pay.php b/templates/checkout/form-pay.php index 4e46c5a263c..c2afd7243ae 100755 --- a/templates/checkout/form-pay.php +++ b/templates/checkout/form-pay.php @@ -57,6 +57,7 @@ global $woocommerce; if ($available_gateways) : // Chosen Method if (sizeof($available_gateways)) current($available_gateways)->set_current(); + $i = 1; foreach ($available_gateways as $gateway ) : ?>
  • @@ -64,7 +65,8 @@ global $woocommerce; has_fields() || $gateway->get_description() ) : - echo '
  • @@ -279,13 +280,15 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods(); has_fields() || $gateway->get_description() ) : - echo '
  • Date: Wed, 7 Nov 2012 23:04:31 -0600 Subject: [PATCH 2/2] potential typo in woocommerce_add_to_cart_action --- woocommerce-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce-functions.php b/woocommerce-functions.php index dc02f1cc6e2..818090bce50 100644 --- a/woocommerce-functions.php +++ b/woocommerce-functions.php @@ -248,7 +248,7 @@ function woocommerce_add_to_cart_action( $url = false ) { // Variable product handling if ( $adding_to_cart->is_type( 'variable' ) ) { - $variation_id = empty( $_REQUEST['quantity'] ) ? '' : absint( $_REQUEST['variation_id'] ); + $variation_id = empty( $_REQUEST['variation_id'] ) ? '' : absint( $_REQUEST['variation_id'] ); $quantity = empty( $_REQUEST['quantity'] ) ? 1 : absint( $_REQUEST['quantity'] ); $all_variations_set = true; $variations = array();