
Originally Posted by
Canvas101
Ok,
Looks like a left out a line of code from my merge file as above....
added the following code //include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/' . $value);
and all is now working.
Thanks for all you help.
I see that I need to add this code also, but where exactly did you add this part? I am using V1.5.0. I have tried it in several places with no luck. I have pasted lines 31-50 from includes/classes/order_total.php.
PHP Code:
while (list(, $value) = each($module_list)) {
// Fixes for when called from ADMIN
$lang_file = null;
$module_file = DIR_WS_MODULES . 'order_total/' . $value;
if(IS_ADMIN_FLAG === true) {
$lang_file = zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
$module_file = DIR_FS_CATALOG . $module_file;
}
else {
$lang_file = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
}
if (@file_exists($lang_file)) {
include_once($lang_file);
} else {
if (IS_ADMIN_FLAG === false && is_object($messageStack)) {
$messageStack->add('header', WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
} else {
$messageStack->add_session(WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
}
}
Can you please tell me where I need to add the code:
PHP Code:
//include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/' . $value);
The error I am getting from my debug log is: [15-Apr-2013 17:09:40] PHP Fatal error: Call to undefined function zen_get_tax_locations() in /home8/wwrepair/public_html/parts/includes/modules/order_total/ot_tax.php on line 31
I appreciate any assistance you can provide. Thanks again!
Bookmarks