Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default Admin Index Page question

    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

    On 1.5.5e

    Where would I edit the number of new orders listed on the admin index page? It currently shows 5, I would like to change this number to 20 to give me a better snapshot of the daily activity without having to go to another page.

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,541
    Plugin Contributions
    19

    Default Re: Admin Index Page question

    admin/index_dashboard.php

    change line 143 from
    Code:
    <?php  $orders = $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id and class = 'ot_total') order by orders_id DESC limit 5");
    to
    Code:
    <?php  $orders = $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id and class = 'ot_total') order by orders_id DESC limit 20");
    Great way to spend my vacation, eh?

  3. #3
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default Re: Admin Index Page question

    Quote Originally Posted by balihr View Post
    admin/index_dashboard.php

    change line 143 from
    Code:
    <?php  $orders = $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id and class = 'ot_total') order by orders_id DESC limit 5");
    to
    Code:
    <?php  $orders = $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id and class = 'ot_total') order by orders_id DESC limit 20");
    Great way to spend my vacation, eh?
    LOL. Let me know if you're bored!

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default Re: Admin Index Page question

    Looks like that should be moved to Maximum Values in the Configuration Menu rather than have to code. Someone might want to add that to github.

 

 

Similar Threads

  1. Customizing Admin Index (Home) Page Question
    By firstimpression in forum General Questions
    Replies: 0
    Last Post: 5 Nov 2009, 12:12 AM
  2. Index Main Page question
    By roadapple in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Dec 2008, 02:58 PM
  3. index page question
    By what44 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Jan 2008, 06:12 PM
  4. Blank index.php and /admin/index.php page after install
    By gsummerlin in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 14 Jul 2006, 10:04 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