magento populate fields in order creation for customer -
i have external application contacts on database server db1 ,second have magento database db2 in same server. want populate customer dropdown in adminpanel contacts information how can ?
try use connect db: ` $config = array( 'host' => $data['db_host'], 'username' => $data['db_user'], 'password' => $data['db_pass'], 'dbname' => $data['db_name'] );
$connection = mage::getsingleton('core/resource')->createconnection('connection_name', 'pdo_mysql', $config); `
then on $connection
can use fetchall()
etc.
and can prepare "dropdown" items if that's want.
Comments
Post a Comment