How to get store email addresses (General contact) in magento?

To get store email addresses(General contact) you have to put this code in your phtml file and this phtml
file was called by the page where you want to showing it.
<?php echo Mage::getStoreConfig(‘trans_email/ident_general/email’);?>

Please leave your comment for asking any question or suggestion.
Need Help?

How to get store email addresses (Sales reprasentative) in magento?

To get store email addresses(Sales reprasentative) you have to put this code in your phtml file and this phtml
file was called by the page where you want to showing it.
<?php echo Mage::getStoreConfig(‘trans_email/ident_sales/email’);?>

Please leave your comment for asking any question or suggestion.
Need Help?

How to get store email addresses (Customer support) in magento?

To get  store email addresses(Customer support)  you have to put this code in your phtml file and this phtml
file was called by the page where you want to showing it.
<?php echo Mage::getStoreConfig(‘trans_email/ident_support/email’);?>

Please leave your comment for asking any question or suggestion.
Need Help?

How to get error message in magento?

To get error message you have to put this code in your phtml file and this phtml
file was called by the page where you want to showing it.
<?php echo Mage::getSingleton(‘core/session’)->addError(‘Error message’);?>
Please leave your comment for asking any question or suggestion.

Please leave your comment for asking any question or suggestion.
Need Help?

How to get state code from state id in magento?

To get  name code from state id you have to put this code in your phtml file and this phtml
file was called by the page where you want to showing it.
$region = Mage::getModel(‘directory/region’)->load(12); $state_code = $region->getCode();

where 12 is a state id.
Please leave your comment for asking any question or suggestion.
Need Help?

How to get name code from state id in magento?

To get  name code from state id you have to put this code in your phtml file and this phtml
file was called by the page where you want to showing it.
$region = Mage::getModel(‘directory/region’)->load(12);$state_name = $region->getName();

where 12 is a state id.
Please leave your comment for asking any question or suggestion.
Need Help?