Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 54
  1. #21
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,636
    Plugin Contributions
    11

    Default Re: Modern admin dashboard

    Quote Originally Posted by OldNGrey View Post
    The Orders Page uses MAX_DISPLAY_SEARCH_RESULTS_ORDERS
    The Home widget page uses $recentOrdersMaxRows in admin\includes\extra_datafiles\dist-site_specific_admin_overrides.php
    Unless I've gotten hold of a rogue file somewhere, dist-site_specific_admin_overrides.php is a non-used template with suggestions for settings. In 2.2.0-alpha, it has
    Code:
    // Maximum number of rows to display in the new orders section of the dashboard widget// Used in: admin/includes/modules/RecentOrdersDashboardWidget.php
    //
    // Change 25 below to the number of rows you require.
    //$recentOrdersMaxRows = 25;
    I think it's actually line 19 of admin/includes/modules/dashboard_widgets/RecentOrdersDashboardWidget.php

    And, the bug is, when line 19 is changed to 20, it does not affect the page. Commenting it out has no effect either.

    I haven't tried renaming the dist file and changing settings there.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  2. #22
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    301
    Plugin Contributions
    7

    Default Re: Modern admin dashboard

    Quote Originally Posted by balihr View Post
    Also, are you suggesting to show ALL statuses in that space with the same counters that's currently in the sidebar? This would work with probably 3-4 statuses, but I have a client with 10 statuses - imagine the clutter this would cause... I can't decide which IDs are more important (someone might have ID 75 as Processing), and if you want to have admin control over which orders show and which don't, ugh...
    Well, it was not a good idea, I forgot about the fact you can have as many status as you want...

    But your idea of customized color is great. This color code system helps to get what is on the screen faster than any writing.

  3. #23
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    372
    Plugin Contributions
    6

    Default Re: Modern admin dashboard

    In dist-site_specific_admin_overrides.php
    Code:
    // Change 25 below to the number of rows you require.
    //$recentOrdersMaxRows = 25;
    remove the comment at the beginning off line 71 so it becomes
    Code:
    $recentOrdersMaxRows = 25
    and now there are 25 new orders listed on the admin home page.

    There are some other settings in that file that are really useful like turning off product images on invoices
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

  4. #24
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,448
    Plugin Contributions
    327

    Default Re: Modern admin dashboard

    The coloring is an excellent idea. Right now we're focused on getting 2.2 out the door but as soon as that's done we'll discuss these changes. Thanks for these improvements!
    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.

  5. #25
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,711
    Plugin Contributions
    19

    Default Re: Modern admin dashboard

    Some updates:
    - dashboard reworked to allow stupid-simple customization - now with drag-and-drop panels
    - recent orders widget updated to include selected order statuses in top line
    - header whitespace down to minimum
    - order status color coding available on Orders Status page
    - color coding used on Dashboard, Orders and Orders Status page (with dashboard using Bootstrap fallback for IDs 1-4)

    Some info

    Dashboard
    Drag-and-drop panels can be moved around, but not 100% freely. The layout of the dashboard is:
    row 1: main zone (col-9) + sidebar (col-3) (or in simple terms, 75%+25%)
    row 2: bottom zone (full width)
    Recent Orders and Sales Graphs are too big to fit in any zone other than main (but you can swap them).
    Traffic History can only be in the bottom zone.
    All other widgets can be rearranged between sidebar and bottom zone.

    Recent Orders
    Top row shows Pending and Processing "pills" by default (assuming IDs 1 and 2). To change it, you can either edit the RecentOrdersDashboardWidget.php file or set and override in includes/extra_datafiles/site_specific_admin_overrides.php (docs):
    Code:
    $target_status_ids = [1,2,4,7]; // IDs you want to show
    $show_status_pills = false; // if you don't want the pills at all
    Orders Status
    Added color code field to the status add or edit sidebox.

    I would suggest installing all 3 modifications (dashboard + header + status color) for the best experience, but all 3 are packed separately in hopes of getting better feedback.

    Download link still the same as in Post #1 (for v2.1.0).

    I'll play with inline css later on.

  6. #26
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,636
    Plugin Contributions
    11

    Default Re: Modern admin dashboard

    Partial blank page and the following:

    Code:
    File Contents( /home/enignet/_test/logs/myDEBUG-adm-20260114-181651-212929-error.log)[14-Jan-2026 18:16:51 UTC] Request URI: /******/, IP address: ###.###.###.###, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 /includes/classes/db/mysql/query_factory.php(757): trigger_error()
    #2 /includes/classes/db/mysql/query_factory.php(701): queryFactory->show_error()
    #3 /includes/classes/db/mysql/query_factory.php(280): queryFactory->set_error()
    #4 /******/includes/modules/dashboard_widgets/RecentOrdersDashboardWidget.php(37): queryFactory->Execute()
    #5 /******/index_dashboard.php(88): include('/home/enignet/_...')
    #6 /******/index_dashboard.php(315): render_zone()
    #7 /******/home.php(27): require('/home/enignet/_...')
    #8 /******/index.php(16): require('/home/enignet/_...')
    --> PHP Fatal error: FATAL MySQL error 1054: Unknown column 's.orders_status_color_code' in 'field list' :: SELECT o.orders_id, o.customers_name, o.customers_id, o.date_purchased,
    o.currency, o.currency_value, o.orders_status,
    ot.text as order_total, ot.value as order_value,
    s.orders_status_name, s.orders_status_color_code
    FROM orders o
    LEFT JOIN orders_total ot ON (o.orders_id = ot.orders_id AND ot.class = 'ot_total')
    LEFT JOIN orders_status s ON (o.orders_status = s.orders_status_id AND s.language_id = 1)
    ORDER BY o.orders_id DESC LIMIT 10 ==> (as called by) /******/includes/modules/dashboard_widgets/RecentOrdersDashboardWidget.php on line 37 <== in /includes/classes/db/mysql/query_factory.php on line 757.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  7. #27
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,711
    Plugin Contributions
    19

    Default Re: Modern admin dashboard

    Quote Originally Posted by dbltoe View Post
    Partial blank page and the following:
    Oh! In that case, the following is wrong:

    Quote Originally Posted by balihr View Post
    I would suggest installing all 3 modifications (dashboard + header + status color) for the best experience, but all 3 are packed separately in hopes of getting better feedback.
    Status color modification is REQUIRED, header is optional. Make sure you visit Localization->Orders Status so it runs the required alter table command.
    Whoops

  8. #28
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,711
    Plugin Contributions
    19

    Default Re: Modern admin dashboard

    Actually, no, not required anymore, just updated index_dashboard.php and RecentOrdersDashboardWidget.php so you don't NEED to add it, but it's recommended.

  9. #29
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    372
    Plugin Contributions
    6

    Default Re: Modern admin dashboard

    Now getting Undefined variable $product in \admin\includes\modules\dashboard_widgets\RecentOrdersDashboardWidget.php on line 193.
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

  10. #30
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,711
    Plugin Contributions
    19

    Default Re: Modern admin dashboard

    Lack of coffee and copy/paste... Sorry about that.
    Updated the zip file - RecentOrdersDashboardWidget.php now updated (and back to foreach instead of while)

 

 
Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. Admin Activity Dashboard
    By g2ktcf in forum General Questions
    Replies: 3
    Last Post: 23 May 2022, 03:14 PM
  2. v153 Couldnt access admin dashboard - too many redirects error
    By Arvinrags in forum Installing on a Linux/Unix Server
    Replies: 17
    Last Post: 18 May 2022, 10:46 AM
  3. Admin Dashboard customization
    By Mikeondraco in forum General Questions
    Replies: 2
    Last Post: 1 Jan 2019, 11:26 PM
  4. v154 Icons or images are not showing in admin dashboard
    By Annie_zaz in forum General Questions
    Replies: 2
    Last Post: 21 Jan 2016, 03:57 PM
  5. Survey for Zen Cart v2.0 Admin Dashboard
    By Kim in forum General Questions
    Replies: 35
    Last Post: 4 Jul 2011, 03:07 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