0

Source model

class Custom_Cat_Model_Catalog_Product_Attribute_Source_Btype
    extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
{
    public function getAllOptions()
    {   
            $data_array=array();
            $btype = Mage::getModel("btype/btype")->getCollection()
                          ->getData();
            foreach($btype as $pk=>$pv){
                $data_array[]= array('value'=>$pv['btype_id'], 'label'=>$pv['btype_name']);
            }
        return $data_array;
    }
}

If i select only one option it shows in export csv but not showing if i select multiple.

can any one help me out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.