i created new attribute called 'brands' as dropdown menu have some values like "nike,puma,..." and added it to the default attribute set i try to get the attribute id to add it to product when insert new one
$brand_id = $this->attributeValueExists('brands',$pro->brand->name ); $product = Mage::getModel('catalog/product'); $product->setBrands($brand_id);
but i have error "
Fatal error: Call to undefined method attributeValueExists() "
Thank in Advance..