
Originally Posted by
zamzom
Also includes/modules/pages/account_confirmation/header_php.php makes uses of variables such as EMAIL_GREET_MS etc. which are available to the standard create_account page. However in ZC 1.5.8 these are not loaded on every page.
Is there a neat way to load these variables on account_confirmation page?
Or do we have to redeclare them here again?
Checking from the documentation
https://docs.zen-cart.com/dev/code/158_language_files/
I have inserted the following in the beginning of header_php.php file after the require(DIR_WS_MODULES ... statement on line 14:
PHP Code:
$filename = 'create_account.php'; // load extra language constants from create_account page
$folder = '/'; // end with slash
$new_langfile = DIR_WS_LANGUAGES . $_SESSION['language'] . $folder . 'lang.' . $filename;
if (file_exists($new_langfile)) {
global $languageLoader;
$languageLoader->loadExtraLanguageFiles(DIR_FS_CATALOG . DIR_WS_LANGUAGES, $_SESSION['language'], $filename, $folder);
}