Product variation (ajax) loose selection

I'm building a shop with multiple variations, for instance, I have 3 colors, 3 shapes and 3 sizes.
When I select color 2, and shape 3. everything is ok. Then I change the color again to color 1 and I loose the information about shape 1 I selected.

I saw the same "problem" in kickstart 2 in the Women's Tee page :
Change the color, then change the size. then change the color again. The size is lost...

Is there a solution for this problem ?

Thanks for answers

Posted: Nov 12, 2012


kaido24 on December 18, 2013

Seems like next code in your own module should work.
function yourmodule_form_commerce_cart_add_to_cart_form_alter(&$form, &$form_state) {
$form_state['rebuild'] = TRUE;

Edit: it doesnt work :s