Magento 2, Magento Development, Customization, Extension Development and Integration, Optimization, SEO and Responsive Design

Magento 2, Magento Development, Customization, Extension Development and Integration, Optimization, SEO and Responsive Design

Magento get store admin email address and name

If you want to get admin email address or store email address that is set in magento backend, you can get as following.

General Contact
/* Name */
Mage::getStoreConfig('trans_email/ident_general/name'); 
/* Email */
Mage::getStoreConfig('trans_email/ident_general/email');

Sales Representative
/* Name */
Mage::getStoreConfig('trans_email/ident_sales/name'); 
/* Email */
Mage::getStoreConfig('trans_email/ident_sales/email');

Customer Support
/* Name */
Mage::getStoreConfig('trans_email/ident_support/name'); 
/* Email */
Mage::getStoreConfig('trans_email/ident_support/email');

Custom Email 1
/* Name */
Mage::getStoreConfig('trans_email/ident_custom1/name'); 
/* Email */
Mage::getStoreConfig('trans_email/ident_custom1/email');

Custom Email 2
/* Name */
Mage::getStoreConfig('trans_email/ident_custom2/name'); 
/* Email */
Mage::getStoreConfig('trans_email/ident_custom2/email');

Please support us, Like us on Facebook.

0 comments:

Post a Comment

 

Copyright @ 2017 HKBlog.