Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default [Done 1.3.9b] Developers Tool Kit, "Look up CONSTANT" search filters not working

    Hi,
    this symptom is the same in 1.38 and 1.39.

    The search field "Look-up CONSTANT or Language File defines" has five filters available.

    If I search for this constant:
    TEXT_PRODUCT_WEIGHT_UNIT
    only the two "All Main Language files...." filters return the correct results. The other three filters return nothing.

    regards
    Steve

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Developers Tool Kit, "Look up CONSTANT" search filters not working

    Um ... that's because that constant is only in the "main" language files. Thus the searches of the other files will return no results.

    I don't see any bug there.
    .

    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
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: Developers Tool Kit, "Look up CONSTANT" search filters not working

    ok, see I can wriggle out of this one..

    Looking at the options available (and actually reading them properly for the first time..) I see 2, 3 and 4, 5 are exclusive.

    HTML Code:
    <option value="1">All Language Files for ENGLISH - Catalog/Admin</option>
    <option value="2">All Main Language files - Catalog (/tienda_139a/includes/languages/english.php /espanol.php etc.)</option>
    <option value="3">All Current Selected Language Files - /tienda_139a/includes/languages/english/*.php</option>
    <option value="4">All Main Language files - Admin (/tienda_139a/admin/includes/languages/english.php /espanol.php etc.)</option>
    <option value="5">All Current Selected Language Files - Admin (/tienda_139a/admin/includes/languages/english/*.php
    1 - I read "All" as like er, everything - it doesn't do that, this is what confused me.
    2 - looks in catalog, top-level primary language files only - works.
    3 - looks in the rest of the catalog, subdirectory files, which is not really "All Currently Selected" (wriggling)
    4 - looks in admin, english.php only - works ok
    5 - as 3 but for admin.

    So, I respectfully still think option 1 is not doing what it says on the tin.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Developers Tool Kit, "Look up CONSTANT" search filters not working

    /admin/developers_tool_kit.php
    Around line 246, add these 2 lines as shown:
    Code:
                  $check_directory[] = DIR_FS_ADMIN . DIR_WS_LANGUAGES . $_SESSION['language'] . '/';
                  $check_directory[] = DIR_FS_ADMIN . DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/newsletters/';
                  $check_directory[] = DIR_FS_CATALOG_LANGUAGES;
                  $check_directory[] = DIR_FS_ADMIN . DIR_WS_LANGUAGES;
                  break;
    .

    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.

  5. #5
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: Developers Tool Kit, "Look up CONSTANT" search filters not working

    Thanks for the fix.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 11 Oct 2009, 02:49 PM
  2. Trying to get rid of "lbs" from php files - developers tool kit not finding it.
    By mtimber in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 26 Oct 2008, 10:13 PM
  3. "editing" when you are at the developers tool kit
    By lmhughes in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Apr 2008, 01:48 AM
  4. Developers Tool Kit not working
    By podgerkev in forum General Questions
    Replies: 5
    Last Post: 8 Dec 2006, 07:29 AM
  5. Can't find "Dear" in Developers Tool Kit
    By PeterBKK in forum General Questions
    Replies: 5
    Last Post: 14 Aug 2006, 12:50 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