Merge pull request #1712 from helgatheviking/master

Add to cart function for variable products  $_REQUEST['variation_id']  1.7b
This commit is contained in:
Mike Jolley 2012-11-08 03:35:46 -08:00
commit 4c63683b42
3 changed files with 1 additions and 1 deletions

0
templates/checkout/form-pay.php Executable file → Normal file
View File

0
templates/checkout/review-order.php Executable file → Normal file
View File

View File

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