Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Batch Order Status Update

    Mod - Batch Order Update, for Zen Cart 1.5.7.

    This mod is for the Admin, Order listing page. It is multi-language.

    When an order status filter is selected:
    1) A checkbox is added to each order to allow multiple selection multiple selection.
    2) A dropdown is displayed to select the new status for the selected orders.
    The orders can be updated in one action, emails can be optionally sent.

    Click image for larger version. 

Name:	Clipboard01.jpg 
Views:	112 
Size:	15.4 KB 
ID:	19664

    How it works
    The list of orders and their languages is stored in an array and updated one-by-one using redirects and the language parameter to send each email in the order language.
    When complete, the admin language is reset to it's original language.
    Clumsy, slow, inefficient...but until the whole order email process is reworked, it will have to do. But it works.

    Get it here:
    https://github.com/torvista/Zen_Cart-Batch_Order_Update


    Use GitHub to see what happened and when. Use a Github client to keep up to date. I use GitKraken.

    After downloading, use GitHub to see what happened subsequently and when. Use a Github client to keep up to date. I use GitKraken.

    Report errors on GitHub as they should be temporary and here they only clutter up the thread.

    If someone wants the challenge to make it look pretty/fit well into the responsive structure, go right ahead!
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Re: Batch Order Status Update

    Well, that opened the flood-gates of pent-up demand!
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  3. #3
    Join Date
    Feb 2008
    Location
    Philadelphia
    Posts
    279
    Plugin Contributions
    3

    Default Re: Batch Order Status Update

    Summertime kids are off school. Definitely a valid plugin will test it out.

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

    Default Re: Batch Order Status Update

    I installed on my test server 1.5.7c 7.4 php - also running Comment Boiler plate

    merged the 2 orders.php files and when I select a status to filter, the page displays as follows:
    Click image for larger version. 

Name:	Screen Shot 2021-07-30 at 11.14.43 PM.jpg 
Views:	37 
Size:	12.0 KB 
ID:	19695
    and here is the error log... not sure what to trace.
    HTML Code:
    [31-Jul-2021 04:14:29 UTC] PHP Fatal error: Uncaught Error: Call to undefined function zen_draw_order_status_dropdown_batch_update() in /admin/orders.php:635
    Stack trace:
    #0 /admin/index.php(11): require()
    #1 {main}
    thrown in /admin/orders.php on line 635
    
    [31-Jul-2021 04:14:29 UTC] Request URI: /XXkcaz00/index.php?cmd=orders&status=1, IP address: xxxxxxxxx
    --> PHP Fatal error: Uncaught Error: Call to undefined function zen_draw_order_status_dropdown_batch_update() in /admin/orders.php:635
    Stack trace:
    #0 /admin/index.php(11): require()
    #1 {main}
    thrown in /admin/orders.php on line 635.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

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

    Default Re: Batch Order Status Update

    Fixed... got lost in the forest of comparisons between versions.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  6. #6
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

    Default Re: Batch Order Status Update

    Downloaded the newest GitHub update and merged... works! Great Contribution!
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  7. #7
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

    Default Re: Batch Order Status Update

    Quote Originally Posted by Carbonless View Post
    Downloaded the newest GitHub update and merged... works! Great Contribution!
    BUG UPDATE

    The batch Status is working... HOWEVER, it broke the ability to update the status within an order.

    Bugfile
    HTML Code:
    [25-Jul-2021 07:20:45 UTC] Request URI:  /index.php?cPath=43&main_page=index&zenid=ks9nrlduulcisu8dr55qmlpra1,  IP address: 91.242.162.12
    #1  mysqli_connect() called at [/includes/classes/db/mysql/query_factory.php:63]
    #2  queryFactory->connect() called at [/includes/init_includes/init_database.php:23]
    #3  require(/includes/init_includes/init_database.php) called at [/includes/application_top.php:189]
    #4  require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or  directory in /includes/classes/db/mysql/query_factory.php on line 63.
    
    [25-Jul-2021 07:20:45 UTC] Request URI:  /index.php?cPath=43&main_page=index&zenid=ks9nrlduulcisu8dr55qmlpra1,  IP address: xxxxx
    #1  mysqli_connect() called at [/includes/classes/db/mysql/query_factory.php:63]
    #2  queryFactory->connect() called at [/includes/init_includes/init_database.php:23]
    #3  require(/includes/init_includes/init_database.php) called at [/includes/application_top.php:189]
    #4  require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or  directory in /includes/classes/db/mysql/query_factory.php on line 63.
    
    [25-Jul-2021 07:20:45 UTC] Request URI:  /index.php?cPath=43&main_page=index&zenid=ks9nrlduulcisu8dr55qmlpra1,  IP address: xxxxx
    #1  mysqli_connect() called at [/includes/classes/db/mysql/query_factory.php:63]
    #2  queryFactory->connect() called at [/includes/init_includes/init_database.php:23]
    #3  require(/includes/init_includes/init_database.php) called at [/includes/application_top.php:189]
    #4  require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or  directory in /includes/classes/db/mysql/query_factory.php on line 63.
    
    [25-Jul-2021 07:20:45 UTC] Request URI:  /index.php?cPath=43&main_page=index&zenid=ks9nrlduulcisu8dr55qmlpra1,  IP address: xxxxx
    #1  mysqli_connect() called at [/includes/classes/db/mysql/query_factory.php:63]
    #2  queryFactory->connect() called at [/includes/init_includes/init_database.php:23]
    #3  require(/includes/init_includes/init_database.php) called at [/includes/application_top.php:189]
    #4  require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or  directory in /includes/classes/db/mysql/query_factory.php on line 63.
    
    [25-Jul-2021 07:20:45 UTC] Request URI:  /index.php?cPath=43&main_page=index&zenid=ks9nrlduulcisu8dr55qmlpra1,  IP address: xxxxx
    #1  mysqli_connect() called at [/includes/classes/db/mysql/query_factory.php:63]
    #2  queryFactory->connect() called at [/includes/init_includes/init_database.php:23]
    #3  require(/includes/init_includes/init_database.php) called at [/includes/application_top.php:189]
    #4  require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or  directory in /includes/classes/db/mysql/query_factory.php on line 63.
    
    [25-Jul-2021 07:20:45 UTC] Request URI:  /index.php?cPath=43&main_page=index&zenid=ks9nrlduulcisu8dr55qmlpra1,  IP address: xxxxx
    #1  mysqli_connect() called at [/includes/classes/db/mysql/query_factory.php:63]
    #2  queryFactory->connect() called at [/includes/init_includes/init_database.php:23]
    #3  require(/includes/init_includes/init_database.php) called at [/includes/application_top.php:189]
    #4  require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or  directory in /includes/classes/db/mysql/query_factory.php on line 63.
    
    [25-Jul-2021 07:20:45 UTC] Request URI:  /index.php?cPath=43&main_page=index&zenid=ks9nrlduulcisu8dr55qmlpra1,  IP address: xxxxx
    #1  mysqli_connect() called at [/includes/classes/db/mysql/query_factory.php:63]
    #2  queryFactory->connect() called at [/includes/init_includes/init_database.php:23]
    #3  require(/includes/init_includes/init_database.php) called at [/includes/application_top.php:189]
    #4  require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or  directory in /includes/classes/db/mysql/query_factory.php on line 63.
    
    [25-Jul-2021 07:20:45 UTC] Request URI:  /index.php?cPath=43&main_page=index&zenid=ks9nrlduulcisu8dr55qmlpra1,  IP address: xxxxx
    #1  mysqli_connect() called at [/includes/classes/db/mysql/query_factory.php:63]
    #2  queryFactory->connect() called at [/includes/init_includes/init_database.php:23]
    #3  require(/includes/init_includes/init_database.php) called at [/includes/application_top.php:189]
    #4  require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or  directory in /includes/classes/db/mysql/query_factory.php on line 63.
    
    [25-Jul-2021 07:20:45 UTC] Request URI:  /index.php?cPath=43&main_page=index&zenid=ks9nrlduulcisu8dr55qmlpra1,  IP address: xxxxx
    #1  mysqli_connect() called at [/includes/classes/db/mysql/query_factory.php:63]
    #2  queryFactory->connect() called at [/includes/init_includes/init_database.php:23]
    #3  require(/includes/init_includes/init_database.php) called at [/includes/application_top.php:189]
    #4  require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or  directory in /includes/classes/db/mysql/query_factory.php on line 63.
    
    [25-Jul-2021 07:20:45 UTC] Request URI:  /index.php?cPath=43&main_page=index&zenid=ks9nrlduulcisu8dr55qmlpra1,  IP address: xxxxx
    #1  mysqli_connect() called at [/includes/classes/db/mysql/query_factory.php:63]
    #2  queryFactory->connect() called at [/includes/init_includes/init_database.php:23]
    #3  require(/includes/init_includes/init_database.php) called at [/includes/application_top.php:189]
    #4  require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or  directory in /includes/classes/db/mysql/query_factory.php on line 63.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

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

    Default Re: Batch Order Status Update

    The problem with ZC157 is the listing page and details page use the same form attribute name for status.

    I did this code based on ZC158 and it's proved impossible to backport to ZC157 without using the unique form attributes introduced in ZC158.
    Github is updated with changes.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  9. #9
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

    Default Re: Batch Order Status Update

    Quote Originally Posted by torvista View Post
    The problem with ZC157 is the listing page and details page use the same form attribute name for status.

    I did this code based on ZC158 and it's proved impossible to backport to ZC157 without using the unique form attributes introduced in ZC158.
    Github is updated with changes.
    Are you stating that it then wont work with 1.5.7c, or are you saying the github changes include certain files from 1.5.8 and can be used with 1.5.7c?
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  10. #10
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Re: Batch Order Status Update

    The orders file contains snippets from ZC158 to enable this to work in ZC157.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Batch Status Update plugin options?
    By harry2cool in forum General Questions
    Replies: 3
    Last Post: 11 Jul 2021, 03:38 PM
  2. Replies: 4
    Last Post: 1 Jul 2020, 05:15 PM
  3. Batch Status Update list as checkmark boxes, not dropdown
    By sbbemn in forum Basic Configuration
    Replies: 6
    Last Post: 8 Feb 2012, 01:57 AM
  4. Batch Status Update Without Super Orders
    By compwhizmm in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Nov 2007, 12:39 PM
  5. ZenCart 1.3.5 - Super_orders - Batch Status Update
    By SIGEAL in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 12 Jul 2007, 05:21 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR