Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2013
    Posts
    4
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2013
    Posts
    4
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Mar 2013
    Posts
    4
    Plugin Contributions
    0

    Default 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.

  5. #5
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default 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?

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: MODULE_ORDER_TOTAL_SUBTOTAL_TITLE text not being defined

    Quote Originally Posted by otreadway View Post
    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

  7. #7
    Join Date
    Mar 2013
    Posts
    4
    Plugin Contributions
    0

    Default 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:

    Name:  Screen Shot 2013-06-26 at 11.04.24 AM.png
Views: 60
Size:  75.5 KB

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

 

 

Similar Threads

  1. v154 States other than defined being charged tax
    By michaelchu in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 10
    Last Post: 12 Feb 2015, 04:12 PM
  2. Defined text, not showing on web page
    By Mr Griswald in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 7 Apr 2011, 11:16 PM
  3. Text being overwritten in FF but not IE??
    By rsloan in forum General Questions
    Replies: 0
    Last Post: 9 Feb 2009, 03:09 AM
  4. Newsletter being sent in plain text, not HTML
    By Blake81 in forum General Questions
    Replies: 4
    Last Post: 17 Jan 2008, 09:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg