$templateId = Mage::getStoreConfig('namespace_module/general/email_template', $order->getStoreId());
if (!$templateId) {
$templateId = ‘payment_reminder_template’;
}
$templateId = Mage::getStoreConfig('namespace_module/general/email_template', $order->getStoreId());
if (!$templateId) {
$templateId = ‘payment_reminder_template’;
}