Is this issue sorted out? I am having the same problem when giving away free variable gift. On the checkout page i cannot select the option for color & size. Tried to paste that code into cart.php but no luck.