Originally Posted by
TC!!
The file flatCourierUK.php was in a folder with the template name inside shipping. As soon as I moved it out to shipping then it started working again.
Originally Posted by
DrByte
Shipping modules come in pairs:
/includes/modules/shipping/FILENAME.php
/includes/languages/YOUR_LANGUAGE/modules/shipping/FILENAME.PHP
The overiding system is being applied for language files in /includes/languages/YOUR_LANGUAGE/modules/shipping/ folder.
But it seems, the code in admin/modules.php and admin/orders.php files does not provide this option...
In admin/orders.php should be
Code:
if (file_exists(zen_get_file_directory(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/' . $module_type . '/', $file, 'false'))) {
include(zen_get_file_directory(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/' . $module_type . '/', $file, 'false'));
instead of
Code:
if (file_exists(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/' . $module_type . '/' . $file)) {
include(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/' . $module_type . '/' . $file);
and in admin/orders.php should be (in many places):
Code:
require_once zen_get_file_directory(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/payment/', $order->info['payment_module_code'] . '.php', 'false');
instead of:
Code:
require_once(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_module_code'] . '.php');
and
Code:
require zen_get_file_directory(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/payment/', $order->info['payment_module_code'] . '.php', 'false');
instead of:
Code:
require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_module_code'] . '.php');
(quoting code from v.155e)
Bookmarks