Language files contain defines ...
For example, the language file for moneyorder.php located in:
/includes/languages/english/modules/payment/moneyorder.php
has the defines:
PHP Code:
define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Check/Money Order');
define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Please make your check or money order payable to:<br />' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br /><br />Mail your payment to:<br />' . nl2br(STORE_NAME_ADDRESS) . '<br /><br />' . 'Your order will not ship until we receive payment.');
define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', "Please make your check or money order payable to:" . "\n\n" . MODULE_PAYMENT_MONEYORDER_PAYTO . "\n\nMail your payment to:\n" . STORE_NAME_ADDRESS . "\n\n" . 'Your order will not ship until we receive payment.');
The code file for Money Order contains code such as:
/includes/modules/payment/moneyorder.php
PHP Code:
class moneyorder {
var $code, $title, $description, $enabled;
// class constructor
function moneyorder() {
global $order;
$this->code = 'moneyorder';
$this->title = MODULE_PAYMENT_MONEYORDER_TEXT_TITLE;
if (IS_ADMIN_FLAG === true && (MODULE_PAYMENT_MONEYORDER_PAYTO == 'the Store Owner/Website Name' || MODULE_PAYMENT_MONEYORDER_PAYTO == '')) $this->title .= '<span class="alert"> (not configured - needs pay-to)</span>';
$this->description = MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION;
$this->sort_order = MODULE_PAYMENT_MONEYORDER_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
if ((int)MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID > 0) {
$this->order_status = MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID;
}
The difference is pretty clear when you view them ...
What I am trying to do is determin what files do you have in the two directories:
/includes/modules/payment
/includes/languages/english/modules/payment
and make sure that nothing is mixed up nor are there copies or extra files in these directories because they are self loading directories ...
Bookmarks