Magento 126.96.36.199 with RWD template
I have a Bundle product, Fruit Box. I have three "real" product: watermelon, type1 melon and type2 melon.
In a Fruit Box i can add 2 single product, a watermelon and a type of melon. A simple box with two "hole".
I have only one type of Watermelon, so in the product page of bundle i haven't a radio input for this product, because is a mandatory product to have in the Fruit Box.
But i have two type of melons, type1 and type2. So in the bundle i see two radio inputs (selection is mandatory), for selecting which type of melon i can have in the Fruit Box.
Now melon type2 is out of stock.
In the product page of bundle now i see two row: one with the obvious watermelon and one with remained (type1) melon. In both rows i have no radio inputs, because obviously there is no longer a choice between products.
Now, when i click to "add to cart" a notice tell me that... i have to select a choice/option!
And so it is impossible to buy this bundle Fruit Box.
I see the code in
magento/app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/option/radio.phtml but i can't figure out where is the problem.
I think is related to the "if" inside the foreach that generate the radio inputs...
It seems that Magento still expects a radio input with a "checked" state... but we have no radio inputs here...
Can someone help me to find the problem? Thanks!