Results 1 to 5 of 5
  1. #1
    Join Date
    May 2010
    Location
    New York
    Posts
    24
    Plugin Contributions
    0

    Default Date Reminder Module

    Installed Date Reminder module; running Zen Cart v1.3.9b. Date Reminder seems to work fine. Have a minor cosmetic issue with breadcrumbs for Date Reminder; it says:

    Home :: NAVBAR_TITLE_1 :: NAVBAR_TITLE_2

    Home and NavBar_title_1 is blue, with a link; however, when I click on *_title_1, it doesn't take me back one page as the breadcrumb is suppose to. The link is to itself, "account_dates"; I'm suspecting instead, my breadcrumb should be:

    Home :: My Account :: Date Reminder

    And if Dates Reminder breadcrumb was configured properly, then My Account on breadcrumb for Date Reminder, should take me back to the my account page where I'd access "Date Reminder" as well as other My Account features; it doesn't take me back anywhere. And, "home" take me back to "home".

    Any idea how I can fix this so that Navbar_Title_1 say My Account, and links back to My Account? While changing NavBart_Title_2 to say Date Reminder?

    Marcia

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Date Reminder Module

    When you see things like: NAVBAR_TITLE_1, it is called an "upper-case constant".

    Basically, it is the part of the code that indicates that some "label" that is stored (or defined) elsewhere in the system, needs to be re-called, and stripped into the resultant HTML.

    When that "label" can't be found by the code, it says: "Oh well, I looked for the label, found nothing, so I'll use the CONSTANT itself."

    You need to find where that constant is stored, as well as the variable that is stripped in... many are in DEFINE statements in language.pgp files, but this one probably comes out of the database.

    As the problem occurred when you installed the module, take a look in the module code for that constant, and see how/where it is being called. It is likely to be within a file that either REPLACED a core file, or OVER-RIDES a core file. (I trust you know the difference...)
    20 years a Zencart User

  3. #3
    Join Date
    May 2010
    Location
    New York
    Posts
    24
    Plugin Contributions
    0

    Default Re: Date Reminder Module

    SB, thanks for your response

    According to "Dates Reminder" install docs, the following file is being overriden.


    includes/templates/template_default/tpl_account_default.php.

    HOWEVER, my tpl_account_default.php wasn't located there; it was located here: includes/templates/template_default/templates/tpl_account_default.php

    What I chose to do was leave the original file in tact; copied the orig file, added the line (below) as specified in install docs and placed it in includes/templates/CUSTOM/templates because I had other *.tpl files there. Program seems to work just fine; except for the breadcrumbs problem.

    I searched "Developer's Tool Kit" for NAVBAR_TITLE_1 and *_2 and found the following located at includes/modules/pages/account_dates/header_php.php:
    Line #106 : $breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_ACCOUNT_DATES, '', 'SSL'));



    I renamed NAVBAR_TITLE_1, but then the program itself failed to load. So I undid it, and program loads again. I haven't a clue where to locate the label as you say for Dates Reminder. Technically, I didn't override anything. I use FileZilla directory comparison before installing every module to see where files are being placed and if anything's being overriden. If something's being overriden, I back up that file. For dates reminder program, I didn't override the file, I copied it to my custom folder, and added the lines below. But like I said, I haven't a clue regarding constant, label, and where to even locate it for this program.

    According to Numinix docs:
    If you have edited this file previously, please use winmerge or add the following line above the </ul> on line 63:
    <?php
    //start numinix dates reminder mod
    if(NUMINIX_DATES_MOD_REMINDER=='true'){
    ?>
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_DATES, '', 'SSL') . '">' . ADD_DATES . '</a>'; ?></li>
    <?php
    }
    //end numinix dates reminder mod
    ?>
    Last edited by ZhENerationX; 25 May 2010 at 06:04 AM.

  4. #4
    Join Date
    May 2010
    Location
    New York
    Posts
    24
    Plugin Contributions
    0

    Default Re: Date Reminder Module

    also, line 107: $breadcrumb->add(NAVBAR_TITLE_2);

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,515
    Plugin Contributions
    126

    Default Re: Date Reminder Module

    If you add to includes/languages/english/YOUR_TEMPLATE/account_dates.php

    define('NAVBAR_TITLE_1','Date Reminder');
    define('NAVBAR_TITLE_2','New Date Reminder');

    This should help.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Mailbeez Addon Module : Wishlist Reminder
    By Limitless in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 13 Nov 2012, 05:56 PM
  2. v139a Problems with mailbeez review reminder module
    By zbdblues in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 10 Nov 2012, 03:45 PM
  3. Aftersales Email Module: Review Reminder
    By BeautyHealth.com.cy in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 27 Jul 2010, 12:00 AM

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