/** * Select one of the options and "prepare for cart" with a proper buy request */ protected function _prepareForCart() { $attributes = $this->_model->getConfigurableAttributesAsArray($this->_product); $attribute = reset($attributes); $optionValueId = $attribute['values'][0]['value_index']; $buyRequest = new Varien_Object(array('qty' => 5, 'super_attribute' => array($attribute['attribute_id'] => $optionValueId))); $this->_model->prepareForCart($buyRequest, $this->_product); }