We are creating product programtically & inserting values for default attributes with help of below code.
how i can add values for custom attributes .
attribute code : delivery_info , attribute label : Delivery & Return Info
protected function _createProduct($type, $doSave=true, $originalProduct)
{
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
$product = Mage::getModel('catalog/product');
$product->setName($originalProduct->getName());
$product->setDescription('what ever you need here')
->setPrice(599)
->setTaxClassId(0) // Taxable Goods by default
->setWeight(1)
;
if ($doSave)
$product->save();
return $product;
}
textfieldattribute.....