Zen Cart Logo
Forums / General Questions / MODULE_ORDER_TOTAL_SUBTOTAL_TITLE text not being defined

MODULE_ORDER_TOTAL_SUBTOTAL_TITLE text not being defined

Views: 521

Results 1 to 7 of 7
25 Jun 2013, 5:05 PM
#1
otreadway avatar

otreadway

New Zenner

Join Date:
Mar 2013
Posts:
4
Plugin Contributions:
0

MODULE_ORDER_TOTAL_SUBTOTAL_TITLE text not being defined

Hi,

The invoice is showing "MODULE_ORDER_TOTAL_SUBTOTAL_TITLE" instead of the english text. All the other labels are fine. Can anyone point me in the right direction for identifying the problem?

Thanks.

25 Jun 2013, 5:23 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: MODULE_ORDER_TOTAL_SUBTOTAL_TITLE text not being defined

Apparently your /includes/languages/YOUR_LANGUAGE_NAME_HERE/modules/order_total/ot_subtotal.php file is missing or damaged.

26 Jun 2013, 2:11 PM
#3
otreadway avatar

otreadway

New Zenner

Join Date:
Mar 2013
Posts:
4
Plugin Contributions:
0

Re: MODULE_ORDER_TOTAL_SUBTOTAL_TITLE text not being defined

Thanks very much for your reply.

The /includes/languages/YOUR_LANGUAGE_NAME_HERE/modules/order_total/ot_subtotal.php file is there and looks ok.

Another data point:
Since I was struggling to isolate the problem. I decided it would be quicker to install a new instance of Zen Cart in a test account. After installing the new instance, I imported the production database into the test database associated with my new Zen Cart instance. When I displayed the invoice the "MODULE_ORDER_TOTAL_SUBTOTAL_TITLE" was displayed rather than the correct value of "Sub-Total". This is that same behavior exhibited by my production instance.

So it looks like a database problem rather than a coding or configuration issue.
If you agree, where should I start looking?

Thanks for all you do for the Zen Cart community.

26 Jun 2013, 2:21 PM
#4
otreadway avatar

otreadway

New Zenner

Join Date:
Mar 2013
Posts:
4
Plugin Contributions:
0

Re: MODULE_ORDER_TOTAL_SUBTOTAL_TITLE text not being defined

More info.

This appears to be only happening on the latest order. So it looks like I mangled some configuration parameters after the previous order and the before the order with the issue.

Any ideas?

Thanks.

26 Jun 2013, 2:26 PM
#5
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: MODULE_ORDER_TOTAL_SUBTOTAL_TITLE text not being defined

When I search in a v1.39h english only site using the developers tool kit

I get this result in the file
/home/mytestsite/public_html/includes/languages/english/modules/order_total/ot_subtotal.php

Line #22 : define('MODULE_ORDER_TOTAL_SUBTOTAL_TITLE', 'Sub-Total');

Either the file **ot_subtotal.php **is not in the correct language directory (in my case english)
or the define is missing from the file

Are you using multiple languages?

26 Jun 2013, 2:28 PM
#6
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: MODULE_ORDER_TOTAL_SUBTOTAL_TITLE text not being defined

otreadway:

So it looks like a database problem rather than a coding or configuration issue.
If you agree, where should I start looking?

I don't agree.

The problem is
/includes/languages/YOUR_LANGUAGE_NAME_HERE/modules/order_total/ot_subtotal.php file is missing or damaged

You say it looks OK. The computer has other ideas.

Does this file have a line that reads:
define('MODULE_ORDER_TOTAL_SUBTOTAL_TITLE', 'Sub-Total');

Are you seeing any other instances of UPPER_CASE_TEXT ?

Cheers
Rod

26 Jun 2013, 3:16 PM
#7
otreadway avatar

otreadway

New Zenner

Join Date:
Mar 2013
Posts:
4
Plugin Contributions:
0

Re: MODULE_ORDER_TOTAL_SUBTOTAL_TITLE text not being defined

Thanks for the replies.

I'm only using English.

Here are the ot_subtotal.php file contents:

<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2003 The zen-cart developers | // | | // | <http://www.zen-cart.com/index.php> | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | <http://www.zen-cart.com/license/2_0.txt>. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [email protected] so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: ot_subtotal.php 1969 2005-09-13 06:57:21Z drbyte $ // define('MODULE_ORDER_TOTAL_SUBTOTAL_TITLE', 'Sub-Total'); define('MODULE_ORDER_TOTAL_SUBTOTAL_DESCRIPTION', 'Order Sub-Total'); ?>

Directory list:

Attachment 12712

Please let me know if you see the problem. Thanks for your help.