how to get the store country, to show it in the transsactional E-mails?
Thanks a lot.
To achieve country object first you have to get country code for current store
$countryCode = Mage::getStoreConfig('general/country/default');
then get country Object
$country = Mage::getModel('directory/country')->loadByCode($countryCode);
When you have the object, there is no problem to assign it to variable in email template
$mailer = Mage::getModel('core/email_template_mailer');
$mailer->setTemplateParams(array(
'country' => $country
));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With