Results 1 to 10 of 126

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    329
    Plugin Contributions
    0

    Default Re: Admin Notes Advanced

    Quote Originally Posted by Carbonless View Post
    Has this been tested with ZC 1.5.7 yet?

    I installed on a test server. Displays the initial note on the admin page, but delivered an error log:

    Code:
    [15-Jan-2021 16:47:17 America/Chicago] Request URI: /XXXX/index.php?cmd=notes&nID=1, IP address: XXXX
    #1  zen_get_notes_categories_array() called at [/XXXX/notes.php:193]
    #2  require(/XXXX/notes.php) called at [/XXXX/index.php:11]
    --> PHP Warning: Use of undefined constant id - assumed 'id' (this  will throw an Error in a future version of PHP) in /XXXX/notes.php  on line 183.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Admin Notes Advanced

    Quote Originally Posted by Carbonless View Post
    I installed on a test server. Displays the initial note on the admin page, but delivered an error log:

    Code:
    [15-Jan-2021 16:47:17 America/Chicago] Request URI: /XXXX/index.php?cmd=notes&nID=1, IP address: XXXX
    #1  zen_get_notes_categories_array() called at [/XXXX/notes.php:193]
    #2  require(/XXXX/notes.php) called at [/XXXX/index.php:11]
    --> PHP Warning: Use of undefined constant id - assumed 'id' (this  will throw an Error in a future version of PHP) in /XXXX/notes.php  on line 183.
    i've never used it. in a cursory look, it could use a complete refactor. i'm guessing this is just one of many sort of errors in the code. last updated almost 4 years ago.

    for your specific error, you can try replacing the appropriate section as follows:

    PHP Code:
    function zen_get_notes_categories_array($all false){
      global 
    $db;
      
      
    $categories $db->Execute("SELECT * FROM " TABLE_NOTES_CATEGORIES " ORDER BY notes_categories_name");
      if(
    $all == true){
        
    $categories_array[] =  ['id' => 0'text' => 'All']; 
      }
      while(!
    $categories->EOF){
       
    $categories_array[] = ['id'=> $categories->fields['notes_categories_id'], 'text' => $categories->fields['notes_categories_name']]; 
       
    $categories->MoveNext(); 
      }
      return 
    $categories_array;
       

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    329
    Plugin Contributions
    0

    Default Re: Admin Notes Advanced

    Quote Originally Posted by carlwhat View Post
    i've never used it. in a cursory look, it could use a complete refactor. i'm guessing this is just one of many sort of errors in the code. last updated almost 4 years ago.

    for your specific error, you can try replacing the appropriate section as follows:

    PHP Code:
    function zen_get_notes_categories_array($all false){
      global 
    $db;
      
      
    $categories $db->Execute("SELECT * FROM " TABLE_NOTES_CATEGORIES " ORDER BY notes_categories_name");
      if(
    $all == true){
        
    $categories_array[] =  ['id' => 0'text' => 'All']; 
      }
      while(!
    $categories->EOF){
       
    $categories_array[] = ['id'=> $categories->fields['notes_categories_id'], 'text' => $categories->fields['notes_categories_name']]; 
       
    $categories->MoveNext(); 
      }
      return 
    $categories_array;
       

    best.

    After replacing the code, this error log was created...
    Code:
    [15-Jan-2021 20:13:43 America/Chicago] Request URI:  /XXkcaz00/index.php?cmd=notes&page=1&nID=6&action=edit, IP  address: 184.170.174.172
    #1  require(/XXkcaz00/notes.php) called at [/XXkcaz00/index.php:11]
    --> PHP Warning: Use of undefined constant TEXT_INFO_NOTE_PRIORITY -  assumed 'TEXT_INFO_NOTE_PRIORITY' (this will throw an Error in a future  version of PHP) in /XXkcaz00/notes.php on line 425.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  4. #4
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    329
    Plugin Contributions
    0

    Default Re: Admin Notes Advanced

    After replacing the code, the following error code was generated...

    Code:
    [15-Jan-2021 20:28:10 America/Chicago] Request URI:  /XXXXX/index.php?cmd=notes&page=1&nID=8&action=edit, IP  address: XXXXX
    #1  require(/XXXXX/notes.php) called at [/XXXXX/index.php:11]
    --> PHP Warning: Use of undefined constant TEXT_INFO_NOTE_PRIORITY -  assumed 'TEXT_INFO_NOTE_PRIORITY' (this will throw an Error in a future  version of PHP) in /XXXXX/notes.php on line 425.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Admin Notes Advanced

    Quote Originally Posted by carlwhat View Post
    i've never used it. in a cursory look, it could use a complete refactor. i'm guessing this is just one of many sort of errors in the code. last updated almost 4 years ago.
    as i stated before...

    not really sure why someone would recommend it without really looking at it closely...
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Apr 2017
    Location
    Netherlands
    Posts
    20
    Plugin Contributions
    0

    Default Re: Admin Notes Advanced

    Can order notes be printed on the invoice?

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: Admin Notes Advanced

    I'm working on a smaller, simpler version of admin notes. Hoping to release in February.
    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.

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

    Default Re: Admin Notes Advanced

    I tried this a very long time ago and remember a lot of fettling was necessary before I was content to let it loose on my site. And that was before the warnings of php7+.
    Never used it since. So, a good idea but not worth the updating effort if there is something newer on the horizon.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: Admin Notes Advanced

    The new Admin Notes has been released.

    https://www.zen-cart.com/downloads.php?do=file&id=2339

    Please use the new support thread for questions:

    https://www.zen-cart.com/showthread....Support-Thread
    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. v153 Admin Name on Order Notes
    By jakumpe in forum Customization from the Admin
    Replies: 2
    Last Post: 11 Dec 2014, 01:49 AM
  2. Notes client only for admin
    By dmossi in forum Customization from the Admin
    Replies: 1
    Last Post: 2 Dec 2011, 05:43 PM
  3. Admin Notes addon
    By MtnVision in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Dec 2007, 08:04 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