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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -