M1 – pobieranie id szablonu z tabeli core_config_data

$templateId = Mage::getStoreConfig('namespace_module/general/email_template', $order->getStoreId());

if (!$templateId) {
    $templateId = ‘payment_reminder_template’;
}